/* =========================================================
   KORIUM TECH · SITE COMPLET
   Socle : eclipse.css (nuit, anneau de lumière, menu, pied de page).
   Ici : le thème Laboratoire (clair), les en-têtes de page,
   et les composants des pages intérieures.
   ========================================================= */

:root {
  --labo: oklch(0.977 0.006 240);
  --labo-2: oklch(0.955 0.01 240);
  --l-ink: oklch(0.24 0.065 252);
  --l-ink-2: oklch(0.36 0.05 250);
  --l-ink-3: oklch(0.47 0.04 250);
  --l-line: oklch(0.24 0.065 252 / 0.13);
  --amber: oklch(0.75 0.13 70);
  --amber-ink: oklch(0.47 0.11 60);
  --red: oklch(0.62 0.22 25);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 14px;
}

/* ---------- Sections et thèmes ---------- */
.s { position: relative; padding-block: var(--sec); }
.s--nuit { background: var(--night); }
.s--nuit + .s--nuit { padding-top: 0; }
.s--labo {
  --ink: var(--l-ink); --ink-2: var(--l-ink-2); --ink-3: var(--l-ink-3);
  --line: var(--l-line); --line-2: oklch(0.24 0.065 252 / 0.07);
  --light-a: oklch(0.55 0.15 245 / 0.45);
  background: var(--labo); color: var(--ink-2); color-scheme: light;
}
.s--labo + .s--labo { padding-top: 0; }
.s--marine { background: var(--marine); }
.s--labo ::selection { background: oklch(0.85 0.08 235); }
.s--labo .btn--ghost { background: transparent; color: var(--l-ink); box-shadow: inset 0 0 0 1px oklch(0.24 0.065 252 / 0.3); }
.s--labo .btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--blue), 0 8px 30px oklch(0.55 0.15 245 / 0.18); }
.s--labo .btn--light { background: var(--marine); color: #fff; }
.s--labo .btn--light:hover { background: oklch(0.36 0.1 252); box-shadow: 0 0 0 6px oklch(0.55 0.15 245 / 0.12); }
.s--labo .btn--light .btn__ico { background: oklch(1 0 0 / 0.14); }
.s--labo .link-arrow::after { background: var(--blue); }
.s--labo .link-arrow { background-image: linear-gradient(var(--blue), var(--blue)); }
.s--labo :focus-visible { outline-color: var(--blue); }
.s--labo .ring-ico { background: conic-gradient(var(--blue) 0 166deg, transparent 166deg 194deg, var(--blue) 194deg 360deg); filter: none; }

/* Une transition douce entre nuit et labo : l'horizon s'éclaire */
.s--labo.s--horizon::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: clamp(80px, 10vw, 160px);
  background: linear-gradient(180deg, var(--night), var(--labo)); pointer-events: none;
}
.s--labo.s--horizon { padding-top: calc(var(--sec) + clamp(40px, 5vw, 80px)); }

/* ---------- Têtes de section ---------- */
.sh { display: grid; gap: 20px; max-width: 820px; margin-bottom: clamp(40px, 5vw, 80px); }
.sh h2 { font-size: clamp(1.8rem, 1rem + 2.6vw, 3.3rem); line-height: 1.07; }
.sh__intro { display: grid; gap: 14px; max-width: 62ch; font-size: 1.0625rem; }
.sh--split { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; column-gap: clamp(24px, 6vw, 110px); }
.sh__aside { justify-self: end; }
.s h3 { font-size: clamp(1.15rem, 0.95rem + 0.6vw, 1.45rem); line-height: 1.2; }

/* ---------- Fil d'Ariane ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 14px; color: var(--ink-3); margin-bottom: 26px; }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: 0.5; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink-2); }

/* =========================================================
   EN-TÊTE DE PAGE (nuit, anneau de lumière)
   ========================================================= */
.ph {
  position: relative; overflow: clip; isolation: isolate;
  padding: clamp(120px, 14vh, 170px) 0 clamp(56px, 7vw, 110px);
  min-height: min(88svh, 900px); display: flex; align-items: center;
  background:
    radial-gradient(60% 70% at 78% 40%, oklch(0.3 0.1 248 / 0.55), transparent 70%),
    var(--night);
}
.ph::after {
  content: ""; position: absolute; inset: auto 0 0; height: 1px; z-index: -1;
  background: linear-gradient(90deg, transparent, oklch(0.72 0.15 238 / 0.4), transparent);
}
.ph__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 110px); align-items: center; width: min(100% - 2 * var(--gutter), 1320px); }
.ph__text { position: relative; z-index: 2; }
.ph__kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--light); margin-bottom: 18px; font-weight: 500; }
.ph h1 { font-size: clamp(2rem, 1rem + 3.4vw, 4.1rem); line-height: 1.04; max-width: 17ch; }
.ph__lead { margin-top: 22px; display: grid; gap: 12px; max-width: 56ch; font-size: 1.125rem; }
.ph__cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.ph__media { position: relative; z-index: 1; }
.ph__media > .m { aspect-ratio: 4 / 5; max-height: 68svh; margin-inline: auto; }
.ph__media > .m.m--wide { aspect-ratio: 16 / 10; }
.ph__media > .m.m--pack { background: radial-gradient(closest-side, oklch(0.32 0.1 248 / 0.9), transparent); box-shadow: none; }
.ph__media > .m.m--pack img { object-fit: contain !important; padding: 8%; filter: drop-shadow(0 30px 40px oklch(0 0 0 / 0.55)); }
.ph__ring {
  position: absolute; z-index: -1; left: 50%; top: 50%; width: 118%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, var(--light) 0 160deg, transparent 166deg 194deg, var(--light) 200deg 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  filter: drop-shadow(0 0 12px var(--light)) drop-shadow(0 0 40px oklch(0.72 0.15 238 / 0.6));
  opacity: 0.85;
}
.ph__ring--solo { left: auto; right: -12vw; top: 50%; width: min(70vw, 820px); transform: translateY(-50%); opacity: 0.6; }
@media (prefers-reduced-motion: no-preference) {
  .js .ph__ring { animation: ringIn 2.2s var(--ease) 0.2s backwards, ringBreath 7s ease-in-out 2.4s infinite; }
  .js .ph h1 { animation: fadeUp 1.1s var(--ease) 0.35s backwards; }
  .js .ph__lead, .js .ph__cta, .js .ph .crumbs, .js .ph__kicker { animation: fadeUp 1.1s var(--ease) 0.5s backwards; }
  .js .ph__media > .m { animation: phMedia 1.6s var(--ease) 0.3s backwards; }
}
@keyframes ringIn { from { opacity: 0; transform: translate(-50%, -50%) scale(0.86); filter: blur(10px); } }
.ph__ring--solo { animation-name: ringInSolo, ringBreath !important; }
@keyframes ringInSolo { from { opacity: 0; transform: translateY(-50%) scale(0.86); } }
@keyframes ringBreath { 50% { opacity: 0.55; } }
@keyframes phMedia { from { opacity: 0; transform: translateY(30px) scale(0.98); clip-path: inset(8% 8% 8% 8% round 14px); } to { clip-path: inset(0 round 14px); } }

/* ---------- Médias ---------- */
.m { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; background: var(--night-2); isolation: isolate; }
.s--labo .m { background: var(--labo-2); }
.m > img, .m > video { width: 100%; height: 100%; object-fit: cover; }
.m figcaption {
  position: absolute; z-index: 3; left: 16px; right: 16px; bottom: 14px;
  font-size: 14px; line-height: 1.35; color: oklch(0.95 0.012 240); text-shadow: 0 1px 14px oklch(0 0 0 / 0.75);
}
.m:has(figcaption)::after { content: ""; position: absolute; inset: 55% 0 0; z-index: 2; background: linear-gradient(transparent, oklch(0.1 0.04 252 / 0.72)); pointer-events: none; }
.m .ia-note { top: 12px; right: 12px; bottom: auto; font-size: 12px; }
.m--contain > img { object-fit: contain; }
.m--pack { background: transparent; overflow: visible; }
.s--labo .m--pack { background: radial-gradient(closest-side, oklch(1 0 0), var(--labo) 90%); }

/* ---------- Mise en page ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.split + .split { margin-top: clamp(64px, 8vw, 130px); }
.split--rev .split__m { order: 2; }
.split__m .m { aspect-ratio: 4 / 3; }
.split__m .m.m--tall { aspect-ratio: 4 / 5; }
.split__t { display: grid; gap: 18px; align-content: center; }
.split__t h3 { font-size: clamp(1.4rem, 1rem + 1.4vw, 2.1rem); line-height: 1.12; }

.prose { display: grid; gap: 16px; max-width: 68ch; }
.prose h3 { margin-top: 18px; }
.prose a:not(.btn) { color: var(--light); text-decoration: underline; text-underline-offset: 3px; }
.s--labo .prose a:not(.btn) { color: var(--blue); }
.prose--2 { max-width: none; columns: 2 320px; column-gap: clamp(32px, 5vw, 80px); display: block; }
.prose--2 > * { break-inside: avoid; margin-bottom: 16px; }

.puces { display: grid; gap: 12px; }
.puces li { position: relative; padding-left: 30px; }
.puces li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 16px; height: 16px; border-radius: 50%;
  background: conic-gradient(var(--light) 0 160deg, transparent 166deg 194deg, var(--light) 200deg 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.4px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2.4px), #000 calc(100% - 2px));
}
.s--labo .puces li::before { background: conic-gradient(var(--blue) 0 160deg, transparent 166deg 194deg, var(--blue) 200deg 360deg); }
.puces--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); column-gap: 40px; }

/* ---------- Plaques : la valeur en grand ---------- */
.plaques { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(28px, 3.5vw, 56px); }
.plaque { display: grid; gap: 10px; align-content: start; padding-top: 22px; background: linear-gradient(90deg, var(--line), transparent) left top / 100% 1px no-repeat; }
.plaque__val { font-family: var(--display); font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.6rem); line-height: 1; color: var(--ink); font-weight: 500; letter-spacing: -0.02em; }
.plaque__val small { font-size: 0.45em; color: var(--light); margin-left: 6px; letter-spacing: 0; }
.s--labo .plaque__val small { color: var(--blue); }
.plaque__lab { font-weight: 600; color: var(--ink); font-size: 17px; }
.plaque__txt { font-size: 16px; color: var(--ink-3); max-width: 34ch; }

/* ---------- Encadrés ---------- */
.enc { border-radius: var(--r); padding: clamp(22px, 2.6vw, 34px); display: grid; gap: 12px; }
.enc__t { font-family: var(--display); font-size: 1.05rem; font-weight: 500; }
.enc__b { display: grid; gap: 10px; }
.enc--essentiel { background: var(--marine); color: oklch(0.9 0.02 240); }
.enc--essentiel .enc__t, .enc--essentiel strong { color: #fff; }
.enc--essentiel .puces li::before { background: conic-gradient(var(--light) 0 160deg, transparent 166deg 194deg, var(--light) 200deg 360deg); }
.enc--info { background: oklch(0.72 0.15 238 / 0.12); box-shadow: inset 0 0 0 1px oklch(0.72 0.15 238 / 0.3); }
.s--labo .enc--info { background: oklch(0.93 0.035 238); box-shadow: none; }
.enc--info .enc__t { color: var(--ink); }
.enc--alerte { background: oklch(0.75 0.13 70 / 0.1); box-shadow: inset 3px 0 0 var(--amber); border-radius: 4px var(--r) var(--r) 4px; }
.enc--alerte .enc__t { display: flex; gap: 10px; align-items: center; color: var(--ink); }
.enc--alerte .enc__t::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); flex: none; }

/* ---------- Rangées (liste visuelle) ---------- */
.rangées { display: grid; }
.rg {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 22px; align-items: start;
  padding: 26px 0; background: linear-gradient(90deg, var(--line), transparent 92%) left top / 100% 1px no-repeat;
}
.rangées li:last-child .rg { background-image: linear-gradient(90deg, var(--line), transparent 92%), linear-gradient(90deg, var(--line), transparent 92%); background-size: 100% 1px, 100% 1px; background-position: left top, left bottom; background-repeat: no-repeat; }
.rg__ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 15px; color: var(--light); box-shadow: inset 0 0 0 1px var(--light-a); }
.s--labo .rg__ico { color: var(--blue); }
.rg__ico img { width: 34px; height: 34px; object-fit: contain; }
.rg__t { color: var(--ink); margin-bottom: 6px; }
.rg__txt { color: var(--ink-2); display: grid; gap: 8px; max-width: 70ch; }
.rg__go { align-self: center; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--light-a); color: var(--ink); transition: transform 0.5s var(--ease), background-color 0.4s; }
.rg__go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
a.rg:hover .rg__go { background: var(--light); color: var(--night); transform: translateX(4px); }
.s--labo a.rg:hover .rg__go { background: var(--marine); color: #fff; }
a.rg:hover .rg__t { color: var(--light); }
.s--labo a.rg:hover .rg__t { color: var(--blue); }
.rangées--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 64px); }

/* ---------- Tuiles produits ---------- */
.produits { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(16px, 2vw, 28px); }
.pt { position: relative; display: grid; gap: 6px; padding: 0 0 18px; border-radius: var(--r); transition: transform 0.6s var(--ease); }
.pt__img {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--r); overflow: hidden;
  background: radial-gradient(80% 70% at 50% 45%, oklch(0.3 0.1 248 / 0.9), var(--night-2));
  margin-bottom: 12px;
}
.pt__img::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 12%; height: 6%; border-radius: 50%; background: oklch(0 0 0 / 0.45); filter: blur(10px); z-index: 0; }
.pt__img img { position: relative; z-index: 1; width: 78%; height: 78%; object-fit: contain; transition: transform 0.8s var(--ease); }
.s--labo .pt__img { background: radial-gradient(80% 70% at 50% 40%, #fff, var(--labo-2)); }
.s--labo .pt__img::after { background: oklch(0.24 0.065 252 / 0.22); }
.pt:hover .pt__img img { transform: translateY(-4%) scale(1.03); }
.pt__tag { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--light); color: var(--night); }
.s--labo .pt__tag { background: var(--marine); color: #fff; }
.pt__nom { font-family: var(--display); font-size: 1.1rem; color: var(--ink); font-weight: 500; padding-right: 52px; }
.pt__sous { font-size: 15px; color: var(--ink-3); line-height: 1.45; padding-right: 52px; }
.pt__go { position: absolute; right: 2px; bottom: 22px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--light-a); transition: transform 0.5s var(--ease), background-color 0.4s; color: var(--ink); }
.pt__go svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pt:hover .pt__go { background: var(--light); color: var(--night); transform: translateX(3px); }
.s--labo .pt:hover .pt__go { background: var(--marine); color: #fff; }

/* ---------- Fiche technique ---------- */
.ft { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(28px, 3vw, 48px) clamp(28px, 4vw, 64px); }
.ft__h { font-family: var(--display); font-size: 1rem !important; font-weight: 500; color: var(--light) !important; margin-bottom: 8px; letter-spacing: 0; }
.s--labo .ft__h { color: var(--blue) !important; }
.ft dl { margin: 0; display: grid; }
.ft__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: baseline; padding: 11px 0; background: linear-gradient(90deg, var(--line), var(--line)) left bottom / 100% 1px no-repeat; }
.ft dt { color: var(--ink-2); font-size: 16px; }
.ft dd { margin: 0; font-family: var(--mono); font-size: 15px; color: var(--ink); text-align: right; font-weight: 500; }
.ft__src { margin-top: 24px; font-size: 14px; color: var(--ink-3); }

/* ---------- Comparateur ---------- */
.cmp { overflow-x: auto; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); -webkit-overflow-scrolling: touch; }
.cmp table { width: 100%; border-collapse: collapse; min-width: 640px; }
.cmp th, .cmp td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cmp thead th { font-family: var(--display); font-weight: 500; font-size: 15px; color: var(--ink); background: oklch(0.72 0.15 238 / 0.08); white-space: nowrap; }
.s--labo .cmp thead th { background: oklch(0.93 0.03 238); }
.cmp tbody th { font-weight: 500; color: var(--ink-2); font-size: 15px; position: sticky; left: 0; background: var(--night); z-index: 1; min-width: 160px; }
.s--labo .cmp tbody th { background: var(--labo); }
.cmp td { font-family: var(--mono); font-size: 14.5px; color: var(--ink); }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.cmp__note { margin-top: 14px; font-size: 14px; color: var(--ink-3); }

/* ---------- FAQ ---------- */
.faq { display: grid; max-width: 900px; }
.faq__i { background: linear-gradient(90deg, var(--line), transparent) left top / 100% 1px no-repeat; }
.faq__i:last-child { background-image: linear-gradient(90deg, var(--line), transparent), linear-gradient(90deg, var(--line), transparent); background-position: left top, left bottom; background-size: 100% 1px; background-repeat: no-repeat; }
.faq__i summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 22px 0; font-family: var(--display); font-size: clamp(1rem, 0.9rem + 0.35vw, 1.2rem); color: var(--ink); font-weight: 500; }
.faq__i summary::-webkit-details-marker { display: none; }
.faq__i summary i { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--light-a); transition: transform 0.5s var(--ease), background-color 0.3s; }
.faq__i summary i::before, .faq__i summary i::after { content: ""; position: absolute; left: 11px; right: 11px; top: 17px; height: 1.6px; background: var(--ink); border-radius: 2px; }
.faq__i summary i::after { transform: rotate(90deg); transition: transform 0.5s var(--ease); }
.faq__i[open] summary i::after { transform: rotate(0deg); }
.faq__i[open] summary i { background: oklch(0.72 0.15 238 / 0.14); }
.faq__a { padding: 0 60px 26px 0; display: grid; gap: 12px; color: var(--ink-2); }

/* ---------- Méthode en 4 temps ---------- */
.mt { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 40px); counter-reset: none; position: relative; }
.mt::before { content: ""; position: absolute; left: 26px; right: 10%; top: 26px; height: 1px; background: linear-gradient(90deg, var(--light), oklch(0.72 0.15 238 / 0.15)); }
.s--labo .mt::before { background: linear-gradient(90deg, var(--blue), oklch(0.55 0.15 245 / 0.1)); }
.mt__i { position: relative; display: grid; gap: 22px; align-content: start; }
.mt__n { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 15px; color: var(--light); background: var(--night); box-shadow: inset 0 0 0 1.5px var(--light), 0 0 22px oklch(0.72 0.15 238 / 0.35); position: relative; z-index: 1; }
.s--labo .mt__n { background: var(--labo); color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.mt__i h3 { color: var(--ink); margin-bottom: 10px; font-size: 1.12rem; }
.mt__i p { font-size: 16px; color: var(--ink-2); }

/* ---------- Téléchargements ---------- */
.dls { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 22px; }
.dl { display: grid; gap: 8px; }
.dl img, .dl__pdf { aspect-ratio: 0.72; width: 100%; object-fit: cover; object-position: top; border-radius: 10px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 18px 40px oklch(0 0 0 / 0.28); transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.s--labo .dl img { box-shadow: 0 0 0 1px var(--line), 0 18px 40px oklch(0.24 0.065 252 / 0.12); }
.dl__pdf { display: grid; place-items: center; font-family: var(--display); color: var(--marine); }
.dl:hover img { transform: translateY(-6px) rotate(-1deg); }
.dl__t { font-weight: 600; color: var(--ink); line-height: 1.35; margin-top: 8px; }
.dl__d { font-size: 14px; color: var(--ink-3); }

/* ---------- Galerie horizontale ---------- */
.gal { margin-inline: calc(-1 * var(--gutter)); }
.gal__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 14px; scrollbar-width: thin; }
.gal__i { flex: none; width: clamp(240px, 28vw, 380px); scroll-snap-align: start; }
.gal__i .m { aspect-ratio: 3 / 4; }

/* ---------- Logos ---------- */
.lgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 16px; }
.lg { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 26px 18px 18px; border-radius: var(--r); background: #fff; color: var(--l-ink-2); font-size: 15px; height: 100%; transition: transform 0.5s var(--ease), box-shadow 0.5s; }
.lg img { height: 56px; width: auto; max-width: 80%; object-fit: contain; }
a.lg:hover { transform: translateY(-4px); box-shadow: 0 18px 40px oklch(0.24 0.065 252 / 0.18); }
.s--labo .lg { box-shadow: 0 0 0 1px var(--l-line); }

/* ---------- Appel final ---------- */
.cta-f { padding-block: clamp(110px, 12vw, 190px); overflow: clip; text-align: center; }
.cta-f__in { position: relative; display: grid; justify-items: center; gap: 22px; }
.cta-f__ring {
  position: absolute; left: 50%; top: 42%; width: min(86vw, 640px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; z-index: 0; pointer-events: none;
  background: conic-gradient(var(--light) 0 160deg, transparent 166deg 194deg, var(--light) 200deg 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  filter: drop-shadow(0 0 14px var(--light)) drop-shadow(0 0 60px oklch(0.72 0.15 238 / 0.55)); opacity: 0.75;
}
.cta-f h2 { position: relative; font-size: clamp(2rem, 1rem + 3.6vw, 4.4rem); line-height: 1.04; max-width: 15ch; }
.cta-f__txt { position: relative; max-width: 52ch; }
.cta-f__btns { position: relative; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.cta-f__coord { position: relative; display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center; font-family: var(--mono); font-size: 15px; color: var(--ink-3); margin-top: 6px; }
.cta-f__coord a:hover { color: var(--ink); }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 22px; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.fd { display: grid; gap: 8px; align-content: start; }
.fd--full { grid-column: 1 / -1; }
.fd label, .fd legend { font-size: 15px; font-weight: 500; color: var(--ink); padding: 0; }
.fd label span[aria-hidden], .fd legend span[aria-hidden] { color: var(--light); }
.fd input, .fd select, .fd textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 12px; border: 0;
  font: inherit; font-size: 16px; color: var(--ink);
  background: oklch(0.95 0.012 240 / 0.05); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.3s, background-color 0.3s;
}
.fd textarea { min-height: 140px; resize: vertical; }
.fd input:focus, .fd select:focus, .fd textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--light), 0 0 0 4px oklch(0.72 0.15 238 / 0.18); background: oklch(0.95 0.012 240 / 0.08); }
.s--labo .fd input, .s--labo .fd select, .s--labo .fd textarea { background: #fff; }
.fd select option { color: #111; }
fieldset.fd { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; font-size: 15px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); transition: all 0.3s var(--ease); }
.chip input:checked + span { background: var(--light); color: var(--night); box-shadow: none; font-weight: 600; }
.s--labo .chip input:checked + span { background: var(--marine); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--light); outline-offset: 2px; }
.fd--consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.fd--consent input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; flex: none; accent-color: var(--light); }
.form__foot { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.form__rgpd { font-size: 14px; color: var(--ink-3); }
.form__rgpd a { text-decoration: underline; }
.form__ok, .form__err { padding: 16px 20px; border-radius: 12px; font-weight: 500; }
.form__ok { background: oklch(0.72 0.15 238 / 0.14); color: var(--ink); box-shadow: inset 0 0 0 1px oklch(0.72 0.15 238 / 0.4); }
.form__err { background: oklch(0.62 0.22 25 / 0.12); color: var(--ink); }
.form.is-sent .form__grid, .form.is-sent .form__foot { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Barre « Sur cette page » ---------- */
.onp {
  position: fixed; z-index: 28; left: 50%; top: 82px; transform: translate(-50%, -12px);
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), visibility 0s linear 0.4s;
  width: min(560px, calc(100vw - 32px));
}
.onp.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.onp__btn {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 999px;
  background: oklch(0.14 0.04 252 / 0.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; color: var(--ink-2); text-align: left;
}
.onp__k { color: var(--ink-3); white-space: nowrap; }
.onp__cur { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); font-weight: 600; }
.onp__n { font-family: var(--mono); font-size: 13px; color: var(--light); }
.onp__list {
  display: none; margin-top: 8px; padding: 8px; border-radius: 16px; max-height: 60vh; overflow: auto;
  background: oklch(0.16 0.045 252 / 0.97); box-shadow: inset 0 0 0 1px var(--line);
}
.onp.is-open .onp__list { display: grid; }
.onp__list a { display: flex; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 15px; color: var(--ink-2); }
.onp__list a:hover, .onp__list a[aria-current] { background: oklch(0.95 0.012 240 / 0.07); color: var(--ink); }
.onp__list a span { font-family: var(--mono); font-size: 13px; color: var(--light); padding-top: 2px; }

/* ---------- Vidéo AWEX (chargée au clic) ---------- */
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; box-shadow: 0 0 0 1px oklch(0.72 0.15 238 / 0.4), 0 0 70px oklch(0.72 0.15 238 / 0.22); }
.yt img, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.yt img { opacity: 0.72; }
.yt__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; gap: 12px; align-items: center; padding: 14px 22px; border-radius: 999px; background: oklch(0.14 0.04 252 / 0.8); color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1px var(--light); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.yt__note { position: absolute; left: 16px; right: 16px; bottom: 12px; font-size: 13px; color: oklch(0.9 0.02 240); text-shadow: 0 1px 10px #000; }
.yt.is-on .yt__play, .yt.is-on .yt__note, .yt.is-on img { display: none; }

/* ---------- Plan du site ---------- */
.pds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 40px; }
.pds__g ul { display: grid; gap: 4px; }
.pds__g li { padding-left: calc(var(--d) * 18px); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.pds__g li a { color: var(--ink); font-weight: 500; }
.pds__g li a:hover { color: var(--blue); }
.pds__g code { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }

/* ---------- Bandeau de liens « Voir aussi » ---------- */
.voir { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.voir a { display: grid; gap: 6px; padding: 22px 24px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.4s, transform 0.5s var(--ease); }
.voir a b { font-family: var(--display); font-weight: 500; color: var(--ink); }
.voir a span { font-size: 15px; color: var(--ink-3); }
.voir a:hover { box-shadow: inset 0 0 0 1px var(--light); transform: translateY(-3px); }
.s--labo .voir a:hover { box-shadow: inset 0 0 0 1px var(--blue); }

/* Menu : lien « Analyse d'eau » mis en avant, page courante */
.nav__links > a.nav__new::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--light); box-shadow: 0 0 8px var(--light); margin-left: 2px; }
.nav__links > a[aria-current], .drop[data-current] .drop__btn { color: var(--ink); }
.drop[data-current] .drop__btn { box-shadow: inset 0 -2px 0 -0.5px var(--light); }
.drop__panel { max-height: calc(100vh - 110px); overflow-y: auto; }
.drop__panel a[aria-current] { background: oklch(0.95 0.012 240 / 0.06); }

/* ---------- Apparitions ---------- */
.js [data-rv].rv { opacity: 0; transform: translate3d(0, 28px, 0); }
.js [data-rv].rv.in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.1s var(--ease); }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .ph { min-height: 0; }
  .ph__grid { grid-template-columns: 1fr; }
  .ph__media { max-width: 520px; width: 100%; margin-inline: auto; }
  .ph__media > .m { max-height: none; }
  .split { grid-template-columns: 1fr; }
  .split--rev .split__m { order: 0; }
  .sh--split { grid-template-columns: 1fr; row-gap: 18px; }
  .sh__aside { justify-self: start; }
  .mt { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .mt::before { display: none; }
  .rangées--2 { grid-template-columns: 1fr; }
}
@media (max-width: 759px) {
  .ph { padding-top: 112px; }
  .ph h1 { font-size: clamp(1.85rem, 1.2rem + 3.6vw, 2.6rem); }
  .ph__lead { font-size: 1.0625rem; }
  .ph__ring--solo { width: 120vw; right: -60vw; opacity: 0.4; }
  .form__grid { grid-template-columns: 1fr; }
  .rg { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; }
  .rg__ico { width: 44px; height: 44px; }
  .rg__go { display: none; }
  .mt { grid-template-columns: 1fr; }
  .faq__a { padding-right: 0; }
  .onp { top: 74px; }
  .cmp tbody th { min-width: 130px; }
  .prose--2 { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-rv].rv { opacity: 1; transform: none; }
}

.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav__links > a, .drop__btn { white-space: nowrap; padding-inline: 13px; }
.duo-img { display: grid; grid-template-columns: 1fr 0.8fr; gap: 16px; align-items: end; }
.duo-img .m { aspect-ratio: auto; }
.projets .projets__list { margin-top: 0; }
[hidden] { display: none !important; }
.ia-note { color: oklch(0.93 0.015 240) !important; background: oklch(0.14 0.04 252 / 0.62) !important; }

/* ---------- Échange d'ions (resine.js) ---------- */
.rx { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.rx__stage { position: relative; aspect-ratio: 1 / 1; max-height: 640px; border-radius: 20px; background: radial-gradient(70% 60% at 50% 45%, oklch(0.24 0.07 250), var(--night)); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.rx.is-regen .rx__stage { background: radial-gradient(70% 60% at 50% 45%, oklch(0.27 0.09 240), var(--night)); }
.rx__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.rx__side { display: grid; gap: 18px; align-content: center; }
.rx__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { min-height: 44px; padding: 8px 18px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); transition: all 0.3s var(--ease); }
.chip-btn[aria-pressed="true"] { background: var(--light); color: var(--night); box-shadow: none; }
.chip-btn:disabled { opacity: 0.6; cursor: default; }
.rx__mode { font-family: var(--display); font-size: 1.15rem; color: var(--ink); line-height: 1.3; min-height: 2.6em; }
.rx__sat { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; font-size: 15px; color: var(--ink-3); }
.rx__sat b { font-family: var(--mono); color: var(--ink); font-weight: 500; }
.rx__satbar { grid-column: 1 / -1; height: 6px; border-radius: 4px; background: oklch(0.95 0.012 240 / 0.08); overflow: hidden; }
.rx__satbar i { display: block; height: 100%; background: linear-gradient(90deg, #1880C8, #F2A93B); transform-origin: left; transform: scaleX(0); transition: transform 0.3s linear; }
.rx__leg { display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.rx__leg li { display: flex; gap: 10px; align-items: center; }
.rx__leg i { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.rx__leg b { font-family: var(--mono); font-weight: 500; color: var(--ink); min-width: 42px; }
.rx__note { font-size: 14px; color: var(--ink-3); }
@media (max-width: 1023px) { .rx { grid-template-columns: 1fr; } .rx__stage { max-height: 520px; aspect-ratio: 4 / 5; } }

/* ---------- Fiche produit ---------- */
.gal--pack .gal__i { width: clamp(220px, 22vw, 300px); }
.gal--pack .m { aspect-ratio: 1; background: radial-gradient(80% 70% at 50% 42%, #fff, var(--labo-2)); }
.gal--pack .m img { object-fit: contain; padding: 8%; }
.gal--pack .m figcaption { color: var(--l-ink-2); text-shadow: none; }
.gal--pack .m:has(figcaption)::after { display: none; }
.gal--pack + .rangées { margin-top: clamp(32px, 4vw, 56px); }
.sp-48 { height: clamp(32px, 4vw, 56px); }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); align-items: start; }
.sub-h { margin-bottom: 16px; color: var(--ink); }
@media (max-width: 759px) { .cols-2 { grid-template-columns: 1fr; } }
.rg__ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* Retours des pages pros (27/10) */
.ft__row { grid-template-columns: minmax(7em, 1fr) minmax(0, auto); }
.ft dd { overflow-wrap: anywhere; max-width: 22ch; }
.split__t h3 { font-size: inherit; line-height: inherit; }
.split__t > h3 { font-size: clamp(1.4rem, 1rem + 1.4vw, 2.1rem); line-height: 1.12; }
.gal--pack .m img { mix-blend-mode: multiply; }
.cmp thead th { white-space: normal; min-width: 9ch; }
.cmp table:has(thead th:nth-child(7)) thead th { font-size: 13.5px; }
/* Retours des pages particuliers (27/10) */
.sh__r { display: grid; gap: 16px; justify-items: start; }
.ph__media > .m.m--pack { background: radial-gradient(closest-side, oklch(0.97 0.008 240) 0 44%, oklch(0.55 0.1 245 / 0.35) 64%, transparent 78%); }
.ph__media > .m.m--pack img { filter: drop-shadow(0 26px 30px oklch(0 0 0 / 0.35)); }
.gal--pack .m:has(figcaption) img { padding-bottom: 18%; }
/* Retours des pages Korium (27/10) */
.sh > div:first-child { display: grid; gap: 20px; }
.s--labo .lumen figcaption { color: #fff; }
/* Retours des pages filtration (27/10) */
.pt__img img { position: absolute; inset: 11%; width: 78%; height: 78%; object-fit: contain; }
.ph__grid > * { min-width: 0; }
.enc--essentiel .link-arrow, .enc--essentiel a { color: #fff; }
.rg__txt a:not(.btn), .faq__a a:not(.btn), .enc__b a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
.produits--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
@media (max-width: 759px) { .btn { white-space: normal; text-align: left; } }
