/* =========================================================
   KORIUM TECH · v4 · Accueil « version 1 an »
   F1 titre visible d'emblée, test de dureté dans le héros (W3),
   robinet avant/après, « Ma solution en 1 minute » (C3),
   pros allégés aux icônes de l'anneau (E5), gamme studio (E3).
   ========================================================= */

/* ---------- F1 : le titre est là dès l'ouverture, l'animation passe par-dessus ---------- */
.js .eau:not(.is-pret) .eau__h1 .ln > span { transform: none; }
.eau__h1 .ln > span { animation: h1-monte 1.4s var(--ease) both; }
.eau__h1 .ln:nth-child(2) > span { animation-delay: 0.1s; }
@keyframes h1-monte { from { transform: translateY(0.24em); } to { transform: none; } }
.js .eau:not(.is-pret) .eau__sub, .js .eau:not(.is-pret) .eau__cta { opacity: 1; transform: none; }
.eau__sub, .eau__cta { animation: monte-doux 1.2s var(--ease) both; }
.eau__sub { animation-delay: 0.15s; } .eau__cta { animation-delay: 0.25s; }
@keyframes monte-doux { from { transform: translateY(14px); } to { transform: none; } }

/* ---------- W3 : test dans le héros ---------- */
.eau__cp { display: flex; align-items: center; height: 56px; padding: 0 7px 0 22px; gap: 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.72); box-shadow: inset 0 0 0 1px rgba(0, 48, 88, 0.14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.eau__cp:focus-within { box-shadow: inset 0 0 0 1.5px var(--bleu-2), 0 0 0 4px rgba(48, 168, 240, 0.18); }
.eau__cp input { width: 15ch; min-width: 0; border: 0; background: none; font: 500 1rem/1 var(--sans); color: var(--marine); letter-spacing: 0.04em; }
.eau__cp input:focus { outline: none; }
.eau__cp input::placeholder { color: var(--gris); letter-spacing: 0; }
.eau__cp-b { display: inline-flex; align-items: center; gap: 12px; height: 42px; padding-left: 16px; border-left: 1px solid var(--filet-2); font: 500 1rem/1 var(--sans); color: var(--marine); white-space: nowrap; }
.eau__cp-b .b__ico { background: var(--aqua); color: var(--marine); }
.eau__cp-b:hover .b__ico { transform: translateX(3px) scale(1.05); }
.eau__res { min-height: 1.6em; margin-top: 14px; font: 500 1rem/1.4 var(--sans); color: var(--marine); text-shadow: 0 0 18px rgba(255, 255, 255, 0.95); }
.eau__res a { text-decoration: underline; text-underline-offset: 3px; }
.eau__res.is-err { color: #A3302A; }
.eau__an { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 9px 16px 9px 12px; border-radius: 999px; background: var(--marine); color: #fff; font: 500 0.92rem/1.2 var(--sans); }
.eau__an-ring { width: 18px; height: 18px; fill: none; stroke: var(--bleu-2); stroke-width: 26; stroke-linecap: round; }
.eau__an[hidden] { display: none; }
/* repli CSS de l'eau trouble (sans WebGL ou mode calme) */
.eau__scene::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, rgba(226, 228, 221, 0.92), rgba(214, 216, 206, 0.96)); opacity: calc(var(--trouble, 0) * 0.62); transition: opacity 1.6s var(--ease); pointer-events: none; }
.eau.gl-trouble .eau__scene::after { display: none; }
@media (max-width: 640px) {
  .eau__cta { flex-direction: column; }
  .eau__cp { width: 100%; justify-content: space-between; padding-left: 18px; gap: 8px; }
  /* 30/11/2026 : le bouton garde sa largeur, la case prend le reste (texte « Tester mon eau » coupé sur téléphone, remarque de Dimitri) */
  .eau__cp input { flex: 1 1 auto; width: auto; }
  .eau__cp-b { flex: none; padding-left: 12px; gap: 8px; }
}
@media (max-width: 420px) {
  .eau__cp-b .b__ico { display: none; }
  .eau__cp { padding-right: 18px; }
}
@media (max-width: 350px) {
  .eau__cp { padding-left: 14px; padding-right: 14px; }
  .eau__cp input, .eau__cp-b { font-size: 0.92rem; }
}

/* ---------- W3 : la dureté en grand ---------- */
.dur__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 100px); align-items: center; }
.dur__val { display: flex; align-items: baseline; gap: 0.1em; margin: clamp(26px, 4vw, 52px) 0 6px; font: 300 clamp(6rem, 3rem + 11vw, 13.5rem)/0.84 var(--serif); letter-spacing: -0.045em; color: var(--marine); font-variant-numeric: tabular-nums; transition: color 0.9s var(--ease); }
.dur__val small { font-size: 0.28em; color: var(--bleu); letter-spacing: -0.01em; }
/* 24/11 : l'anneau Korium se remplit d'eau pendant le test (demande d'Alexandre), puis le chiffre arrive */
.dur__anneau { display: none; width: 0.78em; height: 0.78em; align-self: center; overflow: visible; }
.dur__anneau-vide { fill: none; stroke: rgba(0, 48, 88, 0.12); stroke-width: 23; stroke-linecap: round; }
.dur__anneau-eau { fill: var(--bleu); }
.dur.is-charge .dur__anneau { display: block; }
.dur.is-charge .dur__anneau-eau { animation: ouvMonte 0.95s cubic-bezier(0.33, 0, 0.2, 1) both; }
.dur.is-charge .dur__n, .dur.is-charge .dur__val small { display: none; }
.dur[data-classe="dure"] .dur__val, .dur[data-classe="tres-dure"] .dur__val { color: #A3302A; }
.dur[data-classe="dure"] .dur__val small, .dur[data-classe="tres-dure"] .dur__val small { color: var(--rouge); }
.dur__lab { font: 400 clamp(1.3rem, 1.1rem + 0.7vw, 1.8rem)/1.2 var(--serif); color: var(--marine); letter-spacing: -0.015em; }
.dur__reco { margin-top: 14px; max-width: 44ch; font-size: 1.08rem; }
.dur__note { margin-top: 14px; max-width: 52ch; font-size: 0.9rem; color: var(--gris); }
.dur__note a { text-decoration: underline; text-underline-offset: 3px; }
.dur__cta { margin-top: 26px; }
.dur__rappel { margin-top: clamp(40px, 5vw, 70px); border-top: 1px solid var(--filet-2); }
.dur__rappel summary { list-style: none; cursor: pointer; padding: 22px 0; font: 400 1.3rem/1.3 var(--serif); color: var(--marine); }
.dur__rappel summary::-webkit-details-marker { display: none; }
.dur__rappel summary::after { content: "+"; float: right; color: var(--bleu); font-weight: 300; }
.dur__rappel[open] summary::after { content: "−"; }
.dur__rappel .form { max-width: 820px; padding-bottom: 10px; }

.avap__cadre { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; box-shadow: var(--ombre); background: var(--aqua); touch-action: pan-y; }
.avap__cadre img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avap__dur { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.avap__trait { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 18px rgba(0, 48, 88, 0.35); pointer-events: none; }
.avap__trait i { position: absolute; top: 50%; left: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -10px rgba(0, 48, 88, 0.5); }
.avap__ring { width: 26px; height: 26px; fill: none; stroke: var(--bleu); stroke-width: 24; stroke-linecap: round; }
.avap__lab { position: absolute; top: 16px; padding: 7px 12px; border-radius: 999px; font: 500 0.82rem/1 var(--sans); background: rgba(255, 255, 255, 0.86); color: var(--marine); pointer-events: none; }
.avap__lab--g { left: 16px; } .avap__lab--d { right: 16px; background: var(--marine); color: #fff; }
.avap__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.avap__range:focus-visible + * { outline: none; }
.avap:focus-within .avap__trait i { box-shadow: 0 0 0 3px var(--bleu-2); }
.avap--attente .vd { aspect-ratio: 16 / 10; border-radius: var(--r); }
@media (max-width: 900px) { .dur__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- La gamme (E3) ---------- */
main > section.gm4 { padding-top: 0; }
.gm4 .gamme { margin-top: 0; }

/* ---------- C3 : ma solution en 1 minute ---------- */
.qz__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.qz__tete h2 { margin-bottom: 22px; }
.qz__tete p { max-width: 42ch; font-size: 1.08rem; }
.qz__prog { display: flex; gap: 8px; margin-top: 30px; }
.qz__prog li { width: 44px; height: 4px; border-radius: 4px; background: rgba(0, 48, 88, 0.14); transition: background-color 0.6s var(--ease); }
.qz__prog li.on { background: linear-gradient(90deg, var(--bleu-2), var(--bleu)); }
.qz__corps { position: relative; padding: clamp(24px, 3.4vw, 46px); border-radius: var(--r); background: #fff; box-shadow: var(--ombre); }
.qz__q { border: 0; margin: 0; padding: 0; min-width: 0; }
.qz__q legend { display: block; margin-bottom: 20px; font: 300 clamp(1.6rem, 1.3rem + 1vw, 2.3rem)/1.15 var(--serif); color: var(--marine); letter-spacing: -0.02em; }
.qz__q legend span { display: block; margin-bottom: 8px; font: 500 0.85rem/1.2 var(--sans); color: var(--bleu-texte); letter-spacing: 0; }
.qz__q legend small { display: block; margin-top: 6px; font: 400 0.9rem/1.3 var(--sans); color: var(--gris); letter-spacing: 0; }
.js .qz__f.is-pas .qz__q:not(.is-on) { display: none; }
.qz__q .chips { display: flex; flex-wrap: wrap; gap: 10px; }
.qz__q .chip span { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 18px; }
.qz__q .cp__row { display: flex; gap: 10px; flex-wrap: wrap; }
.qz__q .cp__row input { flex: 1 1 140px; height: 56px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--filet-2); font: 500 1.05rem/1 var(--sans); color: var(--marine); background: var(--fond); }
.qz__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.qz__nav [hidden] { display: none; }
.qz__nav .qz__prec { padding-right: 26px; }
.js .qz__f:not(.is-pas) .qz__nav { display: none; }
.qz__f.is-fini .qz__nav { display: none; }
.qz__out h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.3rem); font-weight: 300; margin-bottom: 14px; }
.qz__out > p { max-width: 56ch; }
.qz__recos { display: grid; gap: 0; margin: 22px 0 18px; border-top: 1px solid var(--filet); }
.qz__recos li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--filet); }
.qz__recos h4 { margin: 4px 0 4px; font: 400 1.15rem/1.3 var(--serif); color: var(--marine); }
.qz__recos a { color: var(--bleu-texte); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.qz__note { font-size: 0.9rem; color: var(--gris); }
.qz__fin { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
@media (max-width: 960px) { .qz__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pros allégés (E5) ---------- */
.pro4__bas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; margin-bottom: clamp(48px, 6vw, 80px); }
.pro4__bas h3 { margin-bottom: 16px; }
.pro4__risques { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.pro4__risques li { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--filet); font: 400 1.12rem/1.3 var(--serif); color: var(--marine); }
@media (max-width: 860px) { .pro4__bas, .pro4__risques { grid-template-columns: minmax(0, 1fr); } }

/* ---------- E4 : chiffre 800 L, sur fond clair entre deux sections ---------- */
#litres-800 .cg__val small { white-space: nowrap; }

/* ---------- Ouffet : mosaïque sans le bloc 800 L (devenu un chiffre plein écran) ---------- */
.mos { grid-template-areas: 'a b d d' 'a b d d' 'c clack e e' 'c be e e'; }
.mos__a img { aspect-ratio: 1 / 1; }
@media (max-width: 1000px) { .mos { grid-template-areas: 'a b' 'd d' 'c clack' 'c be' 'e e'; } }
@media (max-width: 560px) { .mos { grid-template-areas: 'a' 'b' 'd' 'clack' 'c' 'be' 'e'; } }

/* ---------- Gamme studio (E3) : mêmes sol, lumière et échelle ; on rapproche la caméra ---------- */
.gm4 .pr__img img { transform: scale(1.42); transform-origin: 50% 92%; }
.gm4 .pr a:hover .pr__img img { transform: translateY(-6px) scale(1.45); }
.gm4 .pr__img::after { display: none; }

/* ---------- C5 : la carte Cap-Vert montre le trajet réel (globe), plus de carte vide ---------- */
.pj__fig--globe img { aspect-ratio: 4 / 4.6; object-fit: cover; background: var(--marine); }
/* 24/11 : la liste de ce qui est en stock doit se lire (pas que des adoucisseurs) */
#litres-800 .cg__note { max-width: 58ch; font-size: clamp(1.02rem, 0.9rem + 0.45vw, 1.25rem); line-height: 1.55; color: #D6E6F5; }
