/* =========================================================
   KORIUM TECH · v4 · /particuliers/ (Korium Home Solution)
   Portes en rangées, éprouvette de dureté au défilement,
   vitrine où le packshot suit la fiche lue, mosaïque.
   Classes préfixées kh4- (aucune collision avec v2/v4/accueil2).
   ========================================================= */

/* ---------- communs de page (héros sur téléphone, médias réveillés par motion.js) ---------- */
.p4-particuliers .ph__vis .md .revele { aspect-ratio: 4 / 5; max-height: 72vh; }
.p4-particuliers .kh4-hero-vd video { object-position: 66% 50%; }
@media (max-width: 900px) {
  .p4-particuliers .ph__grid { grid-template-columns: minmax(0, 1fr); }
  .p4-particuliers .ph__vis .md > video, .p4-particuliers .ph__vis .md .revele { aspect-ratio: 4 / 3; max-height: none; }
}
.p4-particuliers .s--aqua:has(+ .s--marine)::after { display: none; }
/* vagues : le SVG fait 200 % de large et glisse de -50 % ; sans ceci, max-width: 100 % (v2.css) laisse un trou à droite */
.p4-particuliers .vague svg, .p4-particuliers .ft__wave svg { max-width: none; }
.kh4-k { margin: 0 0 10px; font: 500 0.9rem/1.3 var(--sans); color: var(--bleu); letter-spacing: 0.005em; }
.kh4-neuf { display: inline-block; margin-left: 8px; padding: 3px 10px; border-radius: 999px; background: linear-gradient(160deg, var(--bleu-2), var(--bleu)); color: #fff; font-size: 0.75rem; font-weight: 600; vertical-align: 1px; }
.kh4-ctas { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 22px; }
.kh4-cta { display: grid; gap: 2px; justify-items: start; }
.kh4-cta small { font-size: 0.8rem; color: var(--gris); }
.kh4-puces { margin-top: 18px; }
.kh4-puces li { font-size: 0.88rem; padding: 6px 12px; }

/* ---------- 1. Portes : des rangées, pas des cartes ---------- */
.kh4-portes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 5vw, 80px); }
.kh4-portes li { border-top: 1px solid var(--filet); }
.kh4-portes li:nth-last-child(-n+2) { border-bottom: 1px solid var(--filet); }
.kh4-porte { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 32px; gap: 18px; align-items: center; padding: 22px 12px 22px 0; transition: padding 0.5s var(--ease), background-color 0.4s var(--ease); border-radius: 12px; }
.kh4-porte__t { display: grid; gap: 2px; }
.kh4-porte__t b { font: 400 clamp(1.2rem, 1.08rem + 0.4vw, 1.45rem)/1.2 var(--serif); color: var(--marine); letter-spacing: -0.015em; }
.kh4-porte__t span { font-size: 0.95rem; color: var(--gris); }
.kh4-porte__sym { font: 300 1.1rem/1 var(--serif); color: var(--bleu); opacity: 0.75; white-space: nowrap; }
.kh4-porte__go { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--aqua); color: var(--marine); transition: transform 0.5s var(--ease), background-color 0.3s; }
.kh4-porte__go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.kh4-porte:hover { padding-left: 12px; background: #fff; }
.kh4-porte:hover .kh4-porte__go { transform: translateX(4px); background: var(--marine); color: #fff; }
.kh4-porte .ic__ring { transition: stroke-dashoffset 0.8s var(--ease); }
@media (max-width: 760px) {
  .kh4-portes { grid-template-columns: minmax(0, 1fr); }
  .kh4-portes li:nth-last-child(2) { border-bottom: 0; }
  .kh4-porte { grid-template-columns: 44px minmax(0, 1fr) 32px; gap: 14px; padding: 18px 4px 18px 0; }
  .kh4-porte .ic { width: 44px; height: 44px; }
  .kh4-porte__sym { display: none; }
}

/* ---------- 2. Dureté : l'éprouvette ---------- */
.kh4-dz { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 110px); align-items: center; }
.kh4-dz__txt h2 { max-width: 13ch; margin-bottom: 24px; }
.kh4-dz__lead { font-size: 1.12rem; max-width: 46ch; }
.kh4-dz__txt > p { max-width: 52ch; }
.kh4-cp { margin: 26px 0 22px; }
.kh4-cp .cp__row { max-width: 520px; }
.kh4-dz__note { font-size: 0.88rem; color: var(--gris); }
.kh4-dz__liens { margin-top: 22px; }

.kh4-tube { --n: 1; display: grid; gap: 18px; padding: clamp(22px, 3vw, 36px); border-radius: var(--r); background: rgba(255, 255, 255, 0.72); box-shadow: var(--ombre); }
.kh4-tube__lecture { display: flex; align-items: baseline; gap: 8px; margin: 0; font: 300 clamp(2.6rem, 2rem + 2vw, 3.8rem)/1 var(--serif); color: var(--marine); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kh4-tube__lecture span { font-size: 0.42em; color: var(--gris); letter-spacing: 0; }
.kh4-tube__corps { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: clamp(16px, 2.4vw, 32px); height: 600px; }
.kh4-tube__verre { position: relative; width: 58px; margin-left: 34px; border-radius: 4px 4px 29px 29px; background: rgba(230, 242, 250, 0.7); box-shadow: inset 0 0 0 1.5px var(--filet-2), 0 18px 30px -24px rgba(0, 48, 88, 0.5); }
.kh4-tube__verre::before { content: ""; position: absolute; left: -7px; right: -7px; top: -6px; height: 8px; border-radius: 4px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--filet-2); }
.kh4-tube__eau { position: absolute; inset: 4px; border-radius: 2px 2px 25px 25px; background: linear-gradient(0deg, #30A8F0 0%, #7CC8E6 20%, #7CC8E6 32%, #E8A23C 48%, #E8A23C 58%, #D9483B 72%, #D9483B 100%); clip-path: inset(calc((1 - var(--n)) * 100%) 0 0 0 round 2px 2px 25px 25px); }
.kh4-tube__menisque { position: absolute; left: -10px; right: -10px; bottom: calc(4px + var(--n) * (100% - 8px)); height: 2px; border-radius: 2px; background: var(--marine); opacity: 0; transition: opacity 0.4s; }
.kh4-tube.is-anime .kh4-tube__menisque { opacity: 1; }
.kh4-tube__grad li { position: absolute; left: -34px; bottom: calc(4px + var(--v) * (100% - 8px) / 50); width: 30px; transform: translateY(50%); display: flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: 0.75rem; color: var(--gris); }
.kh4-tube__grad li::after { content: ""; width: 8px; height: 1px; background: var(--filet-2); }
.kh4-tube__nv { display: flex; flex-direction: column-reverse; }
.kh4-tube__nv li { flex: var(--k) 1 0; min-height: 0; display: flex; flex-direction: column; justify-content: flex-start; padding: 12px 0 0 16px; border-top: 3px solid var(--c); border-left: 1px solid var(--filet); transition: opacity 0.6s var(--ease); }
.kh4-tube__nv li:last-child { border-top-color: var(--c); }
.kh4-tube__nv b { font: 400 1.25rem/1.15 var(--serif); color: var(--marine); letter-spacing: -0.01em; }
.kh4-tube__nv em { font-style: normal; font-size: 0.88rem; font-weight: 600; color: var(--bleu); margin: 2px 0 6px; }
.kh4-tube__nv p { margin: 0; font-size: 0.95rem; line-height: 1.5; max-width: 40ch; }
.kh4-tube.is-anime .kh4-tube__nv li:not(.is-on) { opacity: 0.5; }
@media (max-width: 1100px) { .kh4-dz { grid-template-columns: minmax(0, 1fr); } .kh4-tube { max-width: 640px; } }
@media (max-width: 520px) {
  .kh4-tube__corps { grid-template-columns: 66px minmax(0, 1fr); height: 720px; gap: 14px; }
  .kh4-tube__verre { width: 44px; margin-left: 22px; }
  .kh4-tube__grad li { left: -26px; width: 22px; }
  .kh4-tube__grad li::after { width: 5px; }
  .kh4-tube__nv li { padding-left: 12px; }
  .kh4-tube__nv b { font-size: 1.12rem; }
  .kh4-tube__nv p { font-size: 0.9rem; }
}

/* ---------- 3. Vitrine : le packshot suit la fiche ---------- */
.kh4-v { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 110px); }
.kh4-v__stick { position: sticky; top: 110px; height: min(calc(100vh - 150px), 680px); border-radius: var(--r); background: linear-gradient(180deg, #FEFEFE 0%, #F3F9FC 50%, #EBF2FB 100%); box-shadow: var(--ombre); overflow: hidden; }
.kh4-v__fig { position: absolute; inset: 0; margin: 0; opacity: 0; transform: translateY(18px) scale(0.98); transition: opacity 0.7s var(--ease), transform 1s var(--ease); }
.kh4-v__fig.is-on { opacity: 1; transform: none; }
.kh4-v__st { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.kh4-v__pk, .kh4-v__trio { position: absolute; z-index: 1; left: 12%; right: 12%; top: 14%; bottom: 12%; display: flex; align-items: flex-end; justify-content: center; }
.kh4-v__pk img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 26px 22px rgba(0, 48, 88, 0.18)); }
.kh4-v__trio { gap: 7%; top: 36%; }
.kh4-v__trio img { width: auto; height: auto; max-width: 28%; max-height: 100%; filter: drop-shadow(0 18px 16px rgba(0, 48, 88, 0.16)); }
.kh4-v__fig figcaption { position: absolute; left: 26px; top: 22px; z-index: 2; margin: 0; font: 300 1.5rem/1 var(--serif); color: var(--marine); letter-spacing: -0.02em; }
.kh4-v__art { padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--filet); min-height: 46vh; display: flex; flex-direction: column; justify-content: center; transition: opacity 0.5s var(--ease); }
.kh4-v__art:first-child { border-top: 0; padding-top: 0; }
.kh4-v__art h3 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.8rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 300; }
.kh4-v__art h3 a:hover { color: var(--bleu); }
.kh4-v__d { margin-top: 16px; max-width: 46ch; font-size: 1.1rem; color: var(--encre); }
.kh4-v__img { display: none; }
@media (max-width: 1023px) {
  .kh4-v { grid-template-columns: minmax(0, 1fr); }
  .kh4-v__scene { display: none; }
  .kh4-v__art { min-height: 0; padding: 40px 0; }
  .kh4-v__art:first-child { padding-top: 0; }
  .kh4-v__img { display: block; position: relative; height: clamp(300px, 80vw, 420px); margin-bottom: 22px; border-radius: var(--r); overflow: hidden; background: linear-gradient(180deg, #FEFEFE 0%, #F3F9FC 50%, #EBF2FB 100%); }
  .kh4-v__img .kh4-v__st { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
  .kh4-v__img .kh4-v__trio { top: 30%; }
}

.kh4-gamme { margin-top: clamp(48px, 6vw, 80px); }
.kh4-gamme img { width: 100%; border-radius: var(--r); box-shadow: var(--ombre); }
@media (max-width: 640px) { .kh4-gamme { margin-inline: calc(-1 * var(--pad)); } .kh4-gamme img { border-radius: 0; } .kh4-gamme figcaption { padding-inline: var(--pad); } }

/* ---------- 4. Mosaïque ---------- */
.kh4-mo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(24px, 3vw, 48px); }
.kh4-mo__it { grid-column: span 12; display: grid; gap: 22px; align-content: start; }
.kh4-mo__it--7 { grid-column: span 7; }
.kh4-mo__it--5 { grid-column: span 5; }
.kh4-mo__it--large { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.kh4-mo__it--uf { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.kh4-mo__it h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.2rem); line-height: 1.1; letter-spacing: -0.025em; font-weight: 300; }
.kh4-mo__it h3 a:hover { color: var(--bleu); }
.kh4-mo__d { margin-top: 12px; max-width: 52ch; }
.kh4-mo__med .md > video, .kh4-mo__med .md .revele { aspect-ratio: 16 / 10; }
.kh4-mo__med .md > img { aspect-ratio: 3 / 2; }
.kh4-mo__it--5 .kh4-mo__med .md > img, .kh4-mo__it--5 .kh4-mo__med .md .revele { aspect-ratio: 4 / 3; }
.kh4-mo__pack { display: flex; align-items: flex-end; justify-content: center; gap: 8%; height: clamp(260px, 26vw, 360px); padding: 28px 20px 50px; border-radius: var(--r); background: linear-gradient(180deg, #FEFEFE 0%, #F3F9FC 50%, #EBF2FB 100%); box-shadow: var(--ombre); position: relative; }
.kh4-mo__pack img { height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 20px 18px rgba(0, 48, 88, 0.16)); }
.kh4-mo__pack--duo img { max-width: 44%; height: auto; max-height: 100%; }
.kh4-mo__pack figcaption { position: absolute; left: 20px; bottom: 14px; margin: 0; }
.kh4-mo__kdf { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kh4-mo__kdf img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); box-shadow: var(--ombre); }
.kh4-mo__kdf figcaption { grid-column: 1 / -1; margin-top: 0; }
.kh4-mo__kdf-t { margin-top: 20px; padding: 20px 22px; border-radius: 14px; background: var(--aqua); max-width: 64ch; font-size: 0.98rem; }
@media (max-width: 900px) {
  .kh4-mo__it--7, .kh4-mo__it--5 { grid-column: span 12; }
  .kh4-mo__it--large, .kh4-mo__it--uf { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 5. Pourquoi (marine) ---------- */
.kh4-pq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 110px); align-items: start; }
.kh4-pq__photo { position: sticky; top: 110px; }
.kh4-pq__photo > img, .kh4-pq__photo .revele { aspect-ratio: 4 / 5; }
.kh4-pq__txt h2 { margin-bottom: clamp(28px, 4vw, 48px); }
.kh4-pq__it { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; padding: 26px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.kh4-pq__it h3 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.55rem); margin: 8px 0 8px; }
.kh4-pq__it p { color: var(--sur-marine); }
.kh4-bande { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; margin-top: clamp(30px, 4vw, 48px); padding: clamp(22px, 3vw, 34px); border-radius: var(--r); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.kh4-bande__n { display: grid; gap: 6px; margin: 0; }
.kh4-bande__n > span { font: 300 clamp(4rem, 3rem + 4vw, 6.6rem)/0.9 var(--serif); color: #fff; letter-spacing: -0.045em; background: linear-gradient(170deg, #fff 30%, var(--bleu-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.kh4-bande__n small { font: 400 1rem/1.2 var(--sans); color: var(--sur-marine); }
.kh4-bande .lien { margin-top: 12px; }
@media (max-width: 900px) {
  .kh4-pq { grid-template-columns: minmax(0, 1fr); }
  .kh4-pq__photo { position: static; }
  .kh4-pq__photo > img, .kh4-pq__photo .revele { aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) { .kh4-bande { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 6. Parcours + guides ---------- */
.kh4-plus { margin-top: clamp(64px, 8vw, 110px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.kh4-plus h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); font-weight: 300; }
.kh4-guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 48px); }
.kh4-guides a { display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 2px 12px; padding: 16px 0; border-top: 1px solid var(--filet); }
.kh4-guides b { font-weight: 500; color: var(--marine); }
.kh4-guides span { grid-column: 1; font-size: 0.9rem; color: var(--gris); }
.kh4-guides i { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--bleu); transition: transform 0.5s var(--ease); }
.kh4-guides i svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.kh4-guides a:hover i { transform: translateX(4px); }
.kh4-guides a:hover b { color: var(--bleu); }
@media (max-width: 860px) { .kh4-plus { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .kh4-guides { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 7. Être recontacté ---------- */
.kh4-rp { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 110px); align-items: start; }
.kh4-rp__txt h2 { margin-bottom: 20px; }
.kh4-rp__lead { font-size: 1.1rem; max-width: 40ch; }
.kh4-suite { margin-top: 28px; }
.kh4-suite__t { font: 400 1.25rem/1.2 var(--serif); color: var(--marine); margin-bottom: 14px; }
.kh4-suite ol { counter-reset: s; display: grid; gap: 12px; }
.kh4-suite li { counter-increment: s; position: relative; padding-left: 44px; }
.kh4-suite li::before { content: counter(s); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--bleu-2); font-size: 0.8rem; font-weight: 600; color: var(--bleu); }
.kh4-rp__rgpd { margin-top: 24px; font-size: 0.88rem; color: var(--gris); max-width: 48ch; }
.kh4-rp__form { padding: clamp(22px, 3vw, 40px); border-radius: var(--r); background: rgba(255, 255, 255, 0.9); box-shadow: var(--ombre); }
@media (max-width: 900px) { .kh4-rp { grid-template-columns: minmax(0, 1fr); } }

/* mouvement réduit / mode calme : tout reste lisible, rien ne bouge */
html.calme .kh4-v__fig { transition: none; }
@media (prefers-reduced-motion: reduce) { .kh4-v__fig, .kh4-v__art, .kh4-tube__nv li { transition: none; } }
