/* ==========================================================
   Global Consulting Expertise — design épuré & animé
   ========================================================== */
:root {
  --ink: #0a1f3d;
  --ink-2: #3c4a63;
  --muted: #6b7890;
  --line: #e4e9f2;
  --bg: #ffffff;
  --tint: #f4f7fc;
  --blue: #1b5cff;
  --blue-2: #5b8cff;
  --green: #12b76a;
  --amber: #f5a524;
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 1px 2px rgba(10, 31, 61, .04), 0 12px 32px -12px rgba(10, 31, 61, .12);
  --shadow-lg: 0 30px 60px -20px rgba(10, 31, 61, .25);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Progress bar */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg); font-weight: 700; font-size: .95rem;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s, opacity .3s;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35), transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { box-shadow: 0 12px 30px -10px rgba(27, 92, 255, .55); }
.btn:disabled { opacity: .4; pointer-events: none; }
.btn--primary { --bg: var(--blue); }
.btn--sm { padding: .65rem 1.15rem; font-size: .875rem; }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { box-shadow: none; border-color: var(--ink); }
.btn--whatsapp { --bg: #1faa59; }
.btn--whatsapp:hover { box-shadow: 0 12px 30px -10px rgba(31, 170, 89, .6); }
.btn--light { --bg: #fff; --fg: var(--ink); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: #9db8ff; }
.accent {
  font-style: normal;
  background: linear-gradient(100deg, var(--blue), var(--green), var(--blue));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: -200% 0; } }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .4s, box-shadow .4s, transform .5s var(--ease);
}
.header.is-scrolled {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner { display: flex; align-items: center; gap: 2rem; height: 76px; }
.logo { display: flex; align-items: center; gap: .65rem; font-size: 1rem; white-space: nowrap; }
.logo__mark { width: 36px; height: 36px; }
.logo__globe { fill: var(--blue); }
.logo__wave { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 40; animation: draw 3s var(--ease) infinite alternate; }
.logo__wave.w2 { animation-delay: .3s; }
.logo__wave.w3 { animation-delay: .6s; }
@keyframes draw { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
.logo__text { font-weight: 500; letter-spacing: -.01em; }
.logo__text strong { font-weight: 800; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav__list a { font-size: .925rem; font-weight: 600; color: var(--ink-2); position: relative; padding: .4rem 0; transition: color .3s; }
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav__list a:hover, .nav__list a.is-active { color: var(--ink); }
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); transform-origin: left; }

.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-menu {
  display: flex; flex-direction: column; padding: 1rem 24px 2rem; gap: .25rem;
  background: rgba(255,255,255,.96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
}
.mobile-menu a { font-size: 1.5rem; font-weight: 700; padding: .5rem 0; }
.mobile-menu[hidden] { display: none; }

/* ---------- Hero ---------- */
/* Pas d'overflow: hidden sur le hero : la liste de résultats de recherche doit pouvoir déborder
   par-dessus la section suivante (z-index 2). Seul le fond décoratif est rogné. */
.hero { position: relative; z-index: 2; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; }
.blob--1 { width: 520px; height: 520px; background: #cfdcff; top: -120px; right: -80px; animation: float 14s ease-in-out infinite; }
.blob--2 { width: 420px; height: 420px; background: #c9f2dd; bottom: -140px; left: -120px; animation: float 18s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(40px, 30px) scale(1.08); } }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .45;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%);
}
.hero__inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: center; }
.hero__title { font-size: clamp(2.4rem, 4.4vw, 4.1rem); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 1.5rem; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.hero__title .line:nth-child(2) > span { transition-delay: .12s; }
.is-loaded .hero__title .line > span { transform: none; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 36ch; margin-bottom: 2.25rem; }
.hero__lead { min-height: 3.3em; }
.hero__typed { white-space: nowrap; }
.hero__typed .typewriter {
  color: var(--ink); font-weight: 700;
  background: linear-gradient(transparent 62%, rgba(18,183,106,.22) 62%); /* surlignage discret */
}
.hero__typed .caret { background: var(--blue); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@keyframes underline { 0% { transform: scaleX(0); } 40%, 80% { transform: scaleX(1); } 100% { transform: scaleX(0); transform-origin: right; } }

/* Search */
.search { position: relative; max-width: 560px; }
.search__label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .6rem; }
.search__field {
  display: flex; align-items: center; gap: .75rem;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 1rem;
  box-shadow: var(--shadow); transition: border-color .3s, box-shadow .3s;
}
.search__field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(27, 92, 255, .12), var(--shadow); }
.search__field svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.search__field input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; padding: 1.05rem 0; color: var(--ink); min-width: 0; }
.search__field kbd { font: 600 .75rem/1 inherit; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: .3rem .5rem; }
.search__results {
  position: absolute; top: calc(100% - 52px); left: 0; right: 0; z-index: 20;
  list-style: none; margin: 0; padding: .5rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  animation: pop .35s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.search__results li a, .search__results li span { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem .9rem; border-radius: 10px; font-weight: 600; }
.search__results li a small { color: var(--muted); font-weight: 500; }
.search__results li a:hover, .search__results li a:focus, .search__results li a.is-focus { background: var(--tint); outline: none; }
.search__results li span { color: var(--muted); font-weight: 500; }
.search__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.search__tags button {
  border: 1px solid var(--line); background: rgba(255,255,255,.7); border-radius: 999px; padding: .4rem .9rem;
  font-size: .85rem; font-weight: 600; color: var(--ink-2); transition: all .3s var(--ease);
}
.search__tags button:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }

/* Orb */
.hero__visual { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: end; }
.orb { width: 100%; height: 100%; overflow: visible; animation: bob 8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-14px); } }
.orb__waves path { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 3; stroke-linecap: round; animation: wave 6s linear infinite; }
.orb__waves path:nth-child(2) { animation-duration: 8s; stroke: rgba(255,255,255,.35); }
.orb__waves path:nth-child(3) { animation-duration: 10s; stroke: rgba(255,255,255,.25); }
.orb__waves path:nth-child(4) { animation-duration: 7s; stroke: rgba(18,183,106,.6); }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(-160px); } }
.orb__ring { fill: none; stroke: var(--ink); stroke-opacity: .14; stroke-width: 1.2; stroke-dasharray: 4 8; transform-origin: 200px 200px; }
.orb__ring.r1 { animation: spin 40s linear infinite; }
.orb__ring.r2 { transform: rotate(-28deg); stroke-opacity: .1; }
.orb__sat { transform-origin: 200px 200px; }
.orb__sat circle { fill: var(--green); }
.orb__sat.s1 { animation: orbit 12s linear infinite; }
.orb__sat.s2 circle { fill: var(--amber); }
.orb__sat.s2 { animation: orbit 18s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.float-card {
  position: absolute; display: flex; align-items: center; gap: .55rem;
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.9); border-radius: 14px; padding: .7rem 1rem;
  font-size: .85rem; font-weight: 700; box-shadow: var(--shadow-lg); white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.fc--1 { top: 12%; left: -4%; }
.fc--2 { top: 48%; right: -6%; animation-delay: -2s; }
.fc--3 { bottom: 10%; left: 8%; animation-delay: -4s; }
.dot { width: 9px; height: 9px; border-radius: 50%; position: relative; }
.dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: inherit; opacity: .35; animation: ping 2s ease-out infinite; }
@keyframes ping { to { transform: scale(2.2); opacity: 0; } }
.dot--green { background: var(--green); }
.dot--blue { background: var(--blue); }
.dot--amber { background: var(--amber); }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; border: 2px solid var(--ink-2); border-radius: 20px; transform: translateX(-50%); opacity: .5; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 4px; background: var(--ink-2); transform: translateX(-50%); animation: scrollcue 1.8s var(--ease) infinite; }
@keyframes scrollcue { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 1.4rem 0; background: #fff; }
.marquee__track { display: flex; gap: 2rem; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.marquee span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px var(--ink-2); }
.marquee i { font-style: normal; color: var(--blue); align-self: center; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(44px, 5.5vw, 72px) 0; position: relative; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark p { color: #b8c4da; }
.section__head { max-width: 760px; margin-bottom: clamp(24px, 3.5vw, 40px); }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.section__lead { margin-top: 1.25rem; font-size: 1.125rem; color: var(--ink-2); max-width: 60ch; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; background: #fff; padding: 2.25rem 2rem 2rem; display: flex; flex-direction: column; gap: 1rem;
  transition: background .4s;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx) var(--my), rgba(27, 92, 255, .08), transparent 60%);
}
.card:hover::before { opacity: 1; }
.card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); transition: transform .5s var(--ease), background .4s; }
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.card:hover .card__icon { transform: rotate(-8deg) scale(1.08); background: var(--blue); }
.card:hover .card__icon svg { stroke: #fff; }
.card p { color: var(--ink-2); font-size: .975rem; flex: 1; }
.card__link { font-weight: 700; font-size: .925rem; color: var(--blue); display: inline-flex; gap: .4rem; align-items: center; }
.card__link span { transition: transform .4s var(--ease); }
.card__link:hover span, .card:hover .card__link span { transform: translateX(6px); }

/* Slider */
.slider-nav { display: flex; gap: .5rem; }
.icon-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.1rem; transition: all .3s var(--ease); }
.icon-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: scale(1.06); }
.slider {
  display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: .5rem max(24px, calc((100vw - var(--container)) / 2)) 1.5rem; scrollbar-width: none; cursor: grab;
}
.slider::-webkit-scrollbar { display: none; }
.slider.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.slide {
  flex: 0 0 min(380px, 82vw); min-height: 440px; scroll-snap-align: start;
  border-radius: var(--radius); display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden; isolation: isolate; color: #fff; background: var(--ink);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  user-select: none;
}
.slide__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transform: scale(1.02); transition: transform 1.2s var(--ease), filter .6s;
}
.slide::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,31,61,0) 25%, rgba(10,31,61,.55) 55%, rgba(10,31,61,.92) 100%);
  transition: opacity .6s;
}
.slide__body { padding: 1.75rem; display: flex; flex-direction: column; gap: .7rem; transform: translateY(14px); transition: transform .6s var(--ease); }
.slide__body p { font-size: .95rem; color: rgba(255,255,255,.85); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .5s; }
.slide:hover, .slide:focus-within { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.slide:hover .slide__img, .slide:focus-within .slide__img { transform: scale(1.1); }
.slide:hover .slide__body, .slide:focus-within .slide__body { transform: none; }
.slide:hover .slide__body p, .slide:focus-within .slide__body p { max-height: 8em; opacity: 1; }
@media (hover: none) { .slide__body { transform: none; } .slide__body p { max-height: none; opacity: 1; } }
.slide h3 { font-size: 1.5rem; }
.slide a { font-weight: 700; font-size: .9rem; display: inline-flex; gap: .3rem; }
.tag { align-self: flex-start; font-size: .75rem; font-weight: 700; padding: .35rem .75rem; border-radius: 999px; background: rgba(255,255,255,.2); backdrop-filter: blur(6px); letter-spacing: .04em; }
.tag--soft { background: var(--tint); color: var(--blue); backdrop-filter: none; }

/* Devis wizard */
.devis { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.devis__intro { position: sticky; top: 120px; }
.steps-indicator { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-direction: column; gap: .75rem; counter-reset: s; }
.steps-indicator li { counter-increment: s; display: flex; align-items: center; gap: .9rem; font-weight: 700; color: var(--muted); transition: color .4s; }
.steps-indicator li::before {
  content: counter(s); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); font-size: .85rem; transition: all .5s var(--ease);
}
.steps-indicator li.is-active { color: var(--ink); }
.steps-indicator li.is-active::before { background: var(--blue); border-color: var(--blue); color: #fff; transform: scale(1.1); }
.steps-indicator li.is-done::before { content: "✓"; background: var(--green); border-color: var(--green); color: #fff; }

.wizard { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: var(--shadow); position: relative; min-height: 460px; }
.wizard__step { border: 0; margin: 0; padding: 0; display: none; }
.wizard__step.is-active { display: block; animation: stepIn .6s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } }
.wizard legend { font-size: 1.4rem; font-weight: 800; margin-bottom: 1.5rem; padding: 0; letter-spacing: -.01em; }
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.choice {
  display: flex; align-items: center; gap: .85rem; text-align: left;
  border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 1rem 1.1rem; font-weight: 700; color: var(--ink);
  transition: all .35s var(--ease);
}
.choice svg { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; transition: stroke .3s; }
.choice:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow); }
.choice[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.choice[aria-pressed="true"] svg { stroke: #fff; }
.choices--chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.5rem; }
.choices--chips .choice { padding: .65rem 1.05rem; border-radius: 999px; font-size: .9rem; }
.field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1rem; flex: 1; }
.field span { font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.field input, .field textarea {
  font: inherit; border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1rem; color: var(--ink); background: var(--tint);
  transition: border-color .3s, box-shadow .3s, background .3s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(27,92,255,.12); }
.field input[aria-invalid="true"] { border-color: #e5484d; }
.field-row { display: flex; gap: 1rem; }
.wizard__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.wizard__actions [data-prev] { margin-right: auto; }
.summary { background: var(--tint); border-radius: 14px; padding: 1rem 1.2rem; font-size: .9rem; color: var(--ink-2); }
.summary strong { color: var(--ink); }
.form-error { color: #c62a2f; font-weight: 600; font-size: .9rem; margin-top: .75rem; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; }
.timeline::before { content: ""; position: absolute; top: 28px; left: 0; right: 0; height: 1px; background: rgba(255,255,255,.15); }
.timeline::after {
  content: ""; position: absolute; top: 28px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--blue-2), var(--green));
  transform: scaleX(var(--tl, 0)); transform-origin: left; transition: transform .2s linear;
}
.timeline__item { position: relative; padding-top: 4.5rem; }
.timeline__num {
  position: absolute; top: 0; left: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); border: 1px solid rgba(255,255,255,.2); font-weight: 800; z-index: 1; transition: all .5s var(--ease);
}
.timeline__item:hover .timeline__num { background: var(--blue); border-color: var(--blue); transform: scale(1.1); }
.timeline__item h3 { margin-bottom: .6rem; }
.timeline__item p { font-size: .95rem; }

/* About */
.about { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about__text h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 700; margin-bottom: 1.5rem; }
.about__text > p { color: var(--ink-2); font-size: 1.05rem; }
.values { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.values li { border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem; font-weight: 700; font-size: .875rem; transition: all .35s var(--ease); }
.values li:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-3px); }
/* Collage photo animé (À propos) */
.collage { position: relative; min-height: 460px; }
.collage__item { position: absolute; margin: 0; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); }
.collage__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.collage__item--a { top: 0; left: 0; width: 72%; height: 70%; }
.collage__item--b { right: 0; bottom: 0; width: 58%; height: 56%; border: 6px solid #fff; }
.collage__badge {
  position: absolute; left: 6%; bottom: 6%; z-index: 2; background: var(--ink); color: #fff; border-radius: 18px; padding: 1rem 1.25rem;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: bob 6s ease-in-out infinite;
}
.collage__badge b { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: #5fd4ff; line-height: 1; }
.collage__badge span { font-size: .8rem; color: #b8c4da; font-weight: 600; margin-top: .3rem; }

/* ==========================================================
   Images animées : révélation au défilement, parallaxe, fonds
   ========================================================== */
.js .img-reveal { clip-path: inset(100% 0 0 0 round 22px); transition: clip-path 1.3s cubic-bezier(.77, 0, .18, 1); }
.js .img-reveal img { transform: scale(1.3); transition: transform 1.8s var(--ease); }
.js .img-reveal.is-in { clip-path: inset(0 0 0 0 round 22px); }
.js .img-reveal.is-in img { transform: none; }
.js .product__media.img-reveal, .js .hcard__media.img-reveal { clip-path: inset(100% 0 0 0); }
.js .product__media.img-reveal.is-in, .js .hcard__media.img-reveal.is-in { clip-path: inset(0); }
[data-parallax] { will-change: transform; }

/* Photo de fond de section, fondue en haut et en bas (masque) */
.bg-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; animation: kenburns 24s ease-in-out infinite alternate; }
.bg-media img {
  position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; opacity: .55;
  /* L'image déborde de 15 % en haut et en bas (marge de parallaxe) : le fondu doit finir dans la zone visible */
  -webkit-mask-image: linear-gradient(to bottom, transparent 16%, #000 32%, #000 68%, transparent 84%);
  mask-image: linear-gradient(to bottom, transparent 16%, #000 32%, #000 68%, transparent 84%);
}
.bg-media--soft img { opacity: .14; filter: grayscale(.4); }
@keyframes kenburns { to { transform: scale(1.08) translate3d(-1.5%, 1%, 0); } }
.has-bg { overflow: hidden; isolation: isolate; }
.has-bg > .container { position: relative; z-index: 1; }

/* ---------- Bande de chiffres clés ---------- */
.stats-band {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background: linear-gradient(180deg, #04152b, #0a1f3d 60%, #04152b);
  padding: clamp(56px, 8vw, 96px) 0;
}
.stats-band::after { /* voile pour la lisibilité */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(4,21,43,.92) 0%, rgba(4,21,43,.55) 55%, rgba(4,21,43,.85) 100%);
}
.stats-band .container { position: relative; z-index: 1; }
.stats-band__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.stats-band h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); }
.num-label { display: inline-flex; align-items: center; gap: .8rem; margin: 0 0 1rem; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #9db8ff; }
.num-label span { color: #5fd4ff; font-variant-numeric: tabular-nums; }
.num-label i { width: 48px; height: 1px; background: linear-gradient(90deg, #5fd4ff, transparent); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.12); }
.kpi { position: relative; padding: 2rem 1.75rem 2.25rem 0; display: flex; flex-direction: column; gap: .4rem; }
.kpi + .kpi { padding-left: 1.75rem; border-left: 1px solid rgba(255,255,255,.12); }
.kpi__num { font-size: clamp(2.8rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; display: inline-flex; align-items: baseline; }
.kpi__prefix, .kpi__suffix { color: #5fd4ff; font-size: .6em; margin-left: .05em; }
.kpi__label { font-size: 1.05rem; font-weight: 700; margin-top: .5rem; }
.kpi__detail { font-size: .85rem; color: #8ea3c4; line-height: 1.5; }
.kpi__bar { position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: linear-gradient(90deg, #1b5cff, #5fd4ff); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .2s; box-shadow: 0 0 12px rgba(95,212,255,.6); }
.kpi + .kpi .kpi__bar { left: 0; }
.kpi.is-visible .kpi__bar { transform: scaleX(1); }
.kpi.is-counting .kpi__num { text-shadow: 0 0 24px rgba(95,212,255,.45); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pillar { background: #fff; border-radius: var(--radius); padding: 2.25rem 2rem; border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pillar svg { width: 40px; height: 40px; fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1.5rem; }
.pillar h3 { margin-bottom: .6rem; font-size: 1.4rem; }
.pillar p { color: var(--ink-2); }

/* Help */
.help { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.help__item {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; gap: .75rem;
  overflow: hidden; isolation: isolate; transition: color .5s var(--ease), border-color .5s;
}
.help__item::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  clip-path: circle(0% at 100% 100%); transition: clip-path .7s var(--ease);
}
.help__item:hover { color: #fff; border-color: var(--ink); }
.help__item:hover::before { clip-path: circle(150% at 100% 100%); }
.help__item p { color: var(--ink-2); transition: color .5s; }
.help__item:hover p { color: #b8c4da; }
.help__kicker { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--blue); }
.help__item:hover .help__kicker { color: #9db8ff; }
.help__arrow { margin-top: auto; padding-top: 1rem; font-size: 1.5rem; transition: transform .5s var(--ease); }
.help__item:hover .help__arrow { transform: translateX(8px); }

/* Contact */
.contact { overflow: hidden; }
.contact::before {
  content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; right: -200px; top: -200px;
  background: radial-gradient(circle, rgba(27,92,255,.35), transparent 65%); animation: float 16s ease-in-out infinite;
}
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; position: relative; }
.contact h2 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 1rem; }
.contact__cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }
.contact__list { margin: 0; display: flex; flex-direction: column; }
.contact__list > div { padding: 1.5rem 0; border-bottom: 1px solid rgba(255,255,255,.12); display: grid; grid-template-columns: 120px 1fr; gap: 1rem; }
.contact__list dt { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #9db8ff; padding-top: .2rem; }
.contact__list dd { margin: 0; font-size: 1.1rem; font-weight: 600; }
.contact__list a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.contact__list a:hover { background-size: 100% 1px; }

/* Footer */
.footer { background: #06142a; color: #8a98b3; padding: 3rem 0; font-size: .875rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 2rem; align-items: center; flex-wrap: wrap; }
.footer .logo__text { color: #fff; font-size: 1.05rem; }
.footer__brand p { margin-top: .5rem; }
.footer__legal p + p { margin-top: .25rem; }
.to-top { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); color: #fff; transition: all .4s var(--ease); }
.to-top:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-4px); }

/* ==========================================================
   Intro futuriste (10 s) — HUD, sonar, forage, réseau, logo
   ========================================================== */
.intro { display: none; }
.intro-on .intro {
  --hud: #8fe6ff; --hud-dim: rgba(143,230,255,.45); --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  position: fixed; inset: 0; z-index: 200; display: block; color: #fff; overflow: visible;
  background: radial-gradient(1100px 700px at 50% 42%, #071a33 0%, #030b18 55%, #01050c 100%);
  transition: transform 1.1s cubic-bezier(.76, 0, .24, 1);
  font-family: var(--mono);
}
.intro-on body { overflow: hidden; }
.intro.is-done { transform: translateY(calc(-100% - 130px)); }
.intro.is-gone { display: none !important; }
.intro__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro__edge { position: absolute; left: 0; top: 100%; width: 100%; height: 120px; margin-top: -1px; }
.intro__edge path { fill: #01050c; }

/* Lignes de balayage, grain et vignette */
.intro__fx { position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.65) 100%);
}
.intro__fx::before { /* grain animé */
  content: ""; position: absolute; inset: -50%; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .6s steps(4) infinite;
}
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }
.intro__fx::after { /* barre de balayage qui descend */
  content: ""; position: absolute; left: 0; right: 0; height: 120px; top: -120px;
  background: linear-gradient(180deg, transparent, rgba(143,230,255,.06), transparent);
  animation: sweepDown 3.2s linear infinite;
}
@keyframes sweepDown { to { top: 100%; } }

/* HUD */
.intro__hud { position: absolute; inset: 0; z-index: 2; pointer-events: none; color: var(--hud); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.hud-corner { position: absolute; width: 34px; height: 34px; border: 0 solid var(--hud); opacity: .8; transform: scale(0); animation: cornerIn .7s cubic-bezier(.2, 1.4, .4, 1) forwards; }
.hud-corner.tl { top: 20px; left: 20px; border-width: 2px 0 0 2px; transform-origin: 0 0; }
.hud-corner.tr { top: 20px; right: 20px; border-width: 2px 2px 0 0; transform-origin: 100% 0; animation-delay: .08s; }
.hud-corner.bl { bottom: 20px; left: 20px; border-width: 0 0 2px 2px; transform-origin: 0 100%; animation-delay: .16s; }
.hud-corner.br { bottom: 20px; right: 20px; border-width: 0 2px 2px 0; transform-origin: 100% 100%; animation-delay: .24s; }
@keyframes cornerIn { to { transform: scale(1); } }

.hud-boot { position: absolute; top: 40px; left: 44px; display: flex; flex-direction: column; gap: 6px; max-width: min(460px, 70vw); text-transform: none; letter-spacing: .04em; font-size: 12px; }
.hud-boot p { margin: 0; white-space: nowrap; overflow: hidden; color: #c9f1ff; clip-path: inset(0 100% 0 0); transition: clip-path .5s steps(28), opacity .6s; }
.hud-boot p.is-on { clip-path: inset(0 0 0 0); }
.hud-boot p.is-dim { opacity: .35; }
.hud-boot p em { font-style: normal; color: #3dffb0; margin-left: .6em; }

.hud-tele { position: absolute; right: 44px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; text-align: right; opacity: 0; transition: opacity .8s; }
.hud-tele.is-on { opacity: 1; }
.hud-tele div { display: grid; grid-template-columns: auto auto auto; justify-content: end; align-items: baseline; gap: .55em; }
.hud-tele span { color: var(--hud-dim); font-size: 10px; }
.hud-tele b { font-size: 20px; font-weight: 700; color: #fff; letter-spacing: .02em; font-variant-numeric: tabular-nums; text-shadow: 0 0 12px rgba(143,230,255,.6); min-width: 5.5ch; }
.hud-tele i { font-style: normal; color: var(--hud-dim); font-size: 10px; text-transform: none; min-width: 3.5em; text-align: left; }

.hud-lock { position: absolute; left: var(--x, 50%); top: var(--y, 60%); transform: translate(26px, -50%); opacity: 0; transition: opacity .3s; white-space: nowrap; display: flex; flex-direction: column; gap: 3px; }
.hud-lock.is-on { opacity: 1; animation: glitchLock .35s steps(2) 3; }
@keyframes glitchLock { 0% { transform: translate(22px, -50%); } 100% { transform: translate(29px, -50%); } }
.hud-lock b { color: #ff5a7a; font-size: 12px; letter-spacing: .2em; }
.hud-lock small { color: var(--hud-dim); font-size: 10px; }

.hud-nodes span {
  position: absolute; transform: translate(-50%, -50%); padding: 4px 8px; border: 1px solid rgba(143,230,255,.35); background: rgba(3,11,24,.7);
  color: #fff; font-size: 10px; letter-spacing: .16em; opacity: 0; transition: opacity .3s; white-space: nowrap;
}
.hud-nodes span.is-on { opacity: 1; animation: glitch .3s steps(2) 2; }
.hud-nodes span.is-off { opacity: 0; transition: opacity .5s; }
@keyframes glitch { 0% { transform: translate(-50%, -50%) translateX(-3px); filter: hue-rotate(40deg); } 100% { transform: translate(-50%, -50%) translateX(2px); } }

.hud-brand { position: absolute; left: 50%; top: var(--brand-y, 66%); transform: translateX(-50%); text-align: center; opacity: 0; transition: opacity .4s; width: 100%; }
.hud-brand.is-on { opacity: 1; }
.hud-brand__name {
  margin: 0; font-family: "Manrope", sans-serif; font-weight: 800; font-size: clamp(2.4rem, 7vw, 5rem); letter-spacing: .32em; margin-right: -.32em; color: #fff; line-height: 1;
  text-shadow: -2px 0 rgba(255,60,120,.65), 2px 0 rgba(60,220,255,.75), 0 0 30px rgba(95,212,255,.5);
}
.hud-brand__sub { margin: .7em 0 0; font-size: clamp(.7rem, 1.4vw, .9rem); letter-spacing: .55em; margin-right: -.55em; color: var(--hud); }
.hud-brand__tag { margin: 1.2em 0 0; text-transform: none; letter-spacing: .02em; font-size: 12px; color: rgba(201,241,255,.7); opacity: 0; transition: opacity .8s .5s; }
.hud-brand.is-on .hud-brand__tag { opacity: 1; }

.hud-foot { position: absolute; left: 44px; right: 44px; bottom: 40px; display: grid; grid-template-columns: minmax(180px, auto) 1fr auto; align-items: end; gap: 28px; }
.hud-phase { display: flex; flex-direction: column; gap: 6px; }
.hud-phase span { color: var(--hud-dim); }
.hud-phase b { font-size: 15px; color: #fff; letter-spacing: .22em; text-shadow: 0 0 12px rgba(143,230,255,.5); }
.hud-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding-bottom: 8px; }
.hud-bar i { height: 3px; background: rgba(143,230,255,.15); position: relative; overflow: hidden; }
.hud-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #1b5cff, #8fe6ff); transform: scaleX(var(--f, 0)); transform-origin: left; box-shadow: 0 0 10px #8fe6ff; }
.hud-pct { font-family: "Manrope", sans-serif; font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: .85; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.hud-pct small { font-size: .35em; color: var(--hud); margin-left: .15em; vertical-align: top; }

.intro__skip {
  position: absolute; top: 34px; right: 44px; z-index: 3; border: 1px solid rgba(143,230,255,.35); border-radius: 0;
  background: rgba(3,11,24,.6); color: var(--hud); padding: .6rem 1rem; font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase;
  backdrop-filter: blur(6px); transition: background .3s, color .3s; display: inline-flex; gap: .8em; align-items: center;
}
.intro__skip:hover { background: var(--hud); color: #01050c; }
.intro__skip kbd { font: inherit; font-size: 9px; padding: .15em .45em; border: 1px solid currentColor; opacity: .7; }
.intro__flash { position: absolute; inset: 0; z-index: 4; background: radial-gradient(circle at 50% 42%, #fff, #8fe6ff 40%, transparent 75%); opacity: 0; pointer-events: none; }
.intro__flash.is-on { animation: flash .7s ease-out forwards; }
@keyframes flash { 0% { opacity: 0; } 25% { opacity: .9; } 100% { opacity: 0; } }

@media (max-width: 760px) {
  .hud-tele { top: auto; bottom: 150px; right: 24px; transform: none; gap: 8px; }
  .hud-tele b { font-size: 14px; }
  .hud-boot { left: 24px; top: 84px; font-size: 10px; }
  .hud-foot { left: 24px; right: 24px; bottom: 28px; grid-template-columns: 1fr auto; gap: 14px; }
  .hud-bar { grid-column: 1 / -1; order: 3; }
  .intro__skip { top: 24px; right: 24px; }
  .hud-brand__name { letter-spacing: .2em; margin-right: -.2em; }
  .hud-brand__sub { letter-spacing: .3em; margin-right: -.3em; }
}

/* ==========================================================
   Section hydraulique — « eau profonde »
   ========================================================== */
.hydro {
  --cyan: #5fd4ff; --deep: #04152b;
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background: linear-gradient(180deg, #04152b 0, rgba(4,21,43,0) 220px), /* raccord avec la bande de chiffres */
              radial-gradient(1200px 600px at 80% 25%, rgba(27,92,255,.35), transparent 60%),
              radial-gradient(900px 500px at 0% 90%, rgba(95,212,255,.18), transparent 60%),
              linear-gradient(180deg, #04152b 0%, #062344 55%, #04152b 100%);
  padding: 72px 0 120px;
  margin-top: -1px; /* évite un liseré clair entre deux sections sombres (arrondi sous-pixel) */
}
.hydro::before { /* fondu au-dessus des reflets et bulles : raccord sans liseré avec la bande de chiffres */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 160px; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, #04152b 0%, #04152b 12%, rgba(4,21,43,0) 100%);
}
.hydro__wave { position: absolute; left: 0; width: 100%; height: 80px; z-index: 1; pointer-events: none; overflow: visible; }
/* Précédée par la bande de chiffres (même bleu nuit) : pas de vague en haut ; suivie par « Sélection » (fond teinté) */
.hydro__wave--top { display: none; }
.hydro__wave--bottom { bottom: -1px; }
.hydro__wave--bottom path { fill: var(--tint); }
.hydro__wave .w1 { opacity: .45; animation: waveSway 9s ease-in-out infinite; transform-origin: 50% 50%; }
.hydro__wave .w2 { animation: waveSway 12s ease-in-out infinite reverse; transform-origin: 50% 50%; }
@keyframes waveSway { 50% { transform: translateX(-3%) scaleY(1.25); } }

/* Caustiques : reflets lumineux de l'eau */
.hydro__caustics {
  position: absolute; inset: -20%; z-index: -1; opacity: .35; mix-blend-mode: screen; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(95,212,255,.35), transparent) 10% 20% / 380px 220px no-repeat,
    radial-gradient(closest-side, rgba(95,212,255,.25), transparent) 70% 30% / 460px 260px no-repeat,
    radial-gradient(closest-side, rgba(91,140,255,.3), transparent) 40% 70% / 520px 300px no-repeat,
    radial-gradient(closest-side, rgba(95,212,255,.2), transparent) 85% 80% / 360px 200px no-repeat;
  filter: blur(18px); animation: caustics 18s ease-in-out infinite alternate;
}
@keyframes caustics { to { transform: translate3d(4%, -3%, 0) rotate(3deg) scale(1.08); } }
.hydro__bubbles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

.hydro__inner { position: relative; z-index: 2; }
.hydro__intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hydro__label {
  display: inline-flex; align-items: center; gap: .8rem; margin-bottom: 1.25rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #9db8ff;
}
.hydro__label span { color: var(--cyan); font-variant-numeric: tabular-nums; }
.hydro__label i { width: 48px; height: 1px; background: linear-gradient(90deg, var(--cyan), transparent); }
.hydro h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.hydro__accent {
  font-style: normal; color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(100deg, #5fd4ff 0%, #8fe6ff 25%, #1b5cff 50%, #5fd4ff 75%, #8fe6ff 100%);
  background-size: 200% 100%; animation: shine 5s linear infinite;
}
.hydro__type { margin-top: 1.5rem; font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: #c9d6ee; min-height: 2.2em; }
.typewriter { font-weight: 700; }
.hydro .typewriter { color: #fff; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--cyan); margin-left: 3px; vertical-align: -.15em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hydro__lead { margin-top: 1rem; color: #8ea3c4; max-width: 46ch; }

/* Goutte de particules */
.hydro__drop { position: relative; aspect-ratio: 1; width: 100%; max-width: 440px; justify-self: center; }
.hydro__drop canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hydro__ring { position: absolute; left: 50%; bottom: 6%; width: 60%; height: 14%; border: 1px solid rgba(95,212,255,.5); border-radius: 50%; transform: translateX(-50%) scale(.2); opacity: 0; animation: ripple 3.6s ease-out infinite; }
.hydro__ring.r2 { animation-delay: 1.2s; }
.hydro__ring.r3 { animation-delay: 2.4s; }
@keyframes ripple { 15% { opacity: .9; } 100% { transform: translateX(-50%) scale(1.5); opacity: 0; } }

/* Schéma */
.schema { margin-top: clamp(40px, 6vw, 72px); background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); border-radius: 28px; padding: clamp(1rem, 3vw, 2rem); backdrop-filter: blur(6px); }
.schema__svg { width: 100%; height: auto; overflow: visible; }
.schema__ground { stroke: rgba(255,255,255,.25); stroke-width: 1.5; stroke-dasharray: 6 6; }
.schema__aquifer { fill: rgba(95,212,255,.14); animation: aquifer 6s ease-in-out infinite alternate; }
@keyframes aquifer { to { transform: translateX(-30px); } }
.schema__casing { fill: rgba(255,255,255,.06); stroke: rgba(255,255,255,.3); stroke-width: 1.5; }
.pipe { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.water { fill: none; stroke: #3fa8ff; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px rgba(95,212,255,.7)); }
.flow { fill: none; stroke: #c9f1ff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 18; opacity: 0; transition: opacity .6s; animation: flow 1s linear infinite; }
.flow.is-on { opacity: .9; }
@keyframes flow { to { stroke-dashoffset: -20; } }
.pump__body { fill: #0b2c55; stroke: rgba(95,212,255,.6); stroke-width: 2; }
.pump__ring { fill: none; stroke: rgba(255,255,255,.15); stroke-width: 1; stroke-dasharray: 3 5; }
.pump__impeller path { fill: none; stroke: var(--cyan); stroke-width: 3; stroke-linecap: round; }
.pump__impeller circle { fill: var(--cyan); }
.gauge__face { fill: #0b2c55; stroke: rgba(255,255,255,.4); stroke-width: 1.5; }
.gauge__arc { fill: none; stroke: rgba(95,212,255,.5); stroke-width: 2; }
.gauge__needle { stroke: #ffb347; stroke-width: 2; stroke-linecap: round; transition: transform .3s; }
.gauge__stem { stroke: rgba(255,255,255,.2); stroke-width: 3; }
.tower line { stroke: rgba(255,255,255,.3); stroke-width: 3; stroke-linecap: round; }
.tank { fill: rgba(255,255,255,.04); stroke: rgba(255,255,255,.45); stroke-width: 2; }
.tank__water { fill: url(#waterGrad); opacity: .85; animation: tankWave 2.6s linear infinite; }
@keyframes tankWave { to { transform: translateX(-100px); } }
.schema__small { fill: #9db8ff; font: 700 13px "Manrope", sans-serif; letter-spacing: .05em; }
.dripper { fill: rgba(255,255,255,.6); }
.drop { fill: var(--cyan); opacity: 0; }
.drips.is-on .drop { animation: drip 1.6s ease-in infinite; }
.drips.is-on g:nth-child(2) .drop { animation-delay: .5s; }
.drips.is-on g:nth-child(3) .drop { animation-delay: 1s; }
@keyframes drip { 0% { opacity: 0; transform: translateY(-4px) scale(.6); } 20% { opacity: 1; } 80% { opacity: 1; transform: translateY(14px) scale(1); } 100% { opacity: 0; transform: translateY(18px) scale(1.3, .4); } }
.plant { fill: none; stroke: #2bd38a; stroke-width: 2; stroke-linecap: round; transform-box: fill-box; transform-origin: 50% 100%; transform: scale(.4); transition: transform 1.2s var(--ease); }
.drips.is-on .plant { transform: scale(1.4); }

.schema__steps { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.schema__steps li { display: flex; flex-direction: column; gap: .2rem; padding-top: 1rem; border-top: 2px solid rgba(255,255,255,.1); color: #6f86ab; transition: color .5s, border-color .5s; }
.schema__steps li span { font-size: .75rem; font-weight: 800; letter-spacing: .15em; }
.schema__steps li b { font-size: 1.1rem; color: inherit; }
.schema__steps li small { font-size: .85rem; }
.schema__steps li.is-on { color: #fff; border-color: var(--cyan); }
.schema__steps li.is-on span { color: var(--cyan); }

/* Produits hydrauliques — cartes de verre qui se remplissent d'eau */
.hydro__shop { margin-top: clamp(48px, 7vw, 80px); }
.hydro__shop-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hydro__shop-head .hydro__label { margin: 0; }
.hydro__all { font-weight: 700; color: var(--cyan); display: inline-flex; gap: .4rem; }
.hydro__all span { transition: transform .4s var(--ease); }
.hydro__all:hover span { transform: translateX(6px); }
.hydro__products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }
.hcard {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 22px; padding: 1rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; gap: .75rem; cursor: pointer;
  transition: transform .6s var(--ease), border-color .4s, box-shadow .6s var(--ease);
  animation: pop .6s var(--ease) both;
}
.hcard::before { /* eau qui monte */
  content: ""; position: absolute; left: -50%; width: 200%; height: 200%; top: 150%; z-index: -1; border-radius: 42%;
  background: linear-gradient(180deg, rgba(95,212,255,.35), rgba(27,92,255,.25));
  transition: top 1.1s var(--ease); animation: spin 9s linear infinite;
}
.hcard:hover, .hcard:focus-within { transform: translateY(-8px); border-color: rgba(95,212,255,.6); box-shadow: 0 30px 60px -25px rgba(95,212,255,.45); }
.hcard:hover::before, .hcard:focus-within::before { top: 45%; }
.hcard__media { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.05); }
.hcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hcard:hover .hcard__media img { transform: scale(1.08); }
.hcard__name { font-weight: 700; line-height: 1.3; font-size: 1rem; background: none; border: 0; padding: 0; color: #fff; text-align: left; }
.hcard__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.hcard__price { font-weight: 800; font-variant-numeric: tabular-nums; }
.hcard .add-btn { background: var(--cyan); color: var(--deep); }
.hcard .add-btn.is-added { background: var(--green); color: #fff; }
.hcard__bubble { position: absolute; bottom: -10px; width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); z-index: -1; opacity: 0; pointer-events: none; }
.hcard:hover .hcard__bubble { animation: bubbleUp 2.4s ease-in infinite; }
@keyframes bubbleUp { 0% { opacity: 0; transform: translateY(0) scale(.6); } 20% { opacity: .9; } 100% { opacity: 0; transform: translateY(-260px) translateX(10px) scale(1.2); } }
.hydro__empty { grid-column: 1 / -1; color: #8ea3c4; text-align: center; padding: 2rem; border: 1px dashed rgba(255,255,255,.2); border-radius: 22px; }

@media (max-width: 1024px) {
  .hydro__intro { grid-template-columns: 1fr; }
  .hydro__drop { max-width: 320px; order: -1; }
}
@media (max-width: 640px) {
  .hydro { padding: 90px 0 100px; }
  .schema { padding: .75rem; border-radius: 20px; }
  .schema__steps { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Bouton panier (en-tête) ---------- */
.cart-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; transition: transform .3s var(--ease), border-color .3s; flex: none; }
.cart-btn:hover { border-color: var(--ink); transform: translateY(-2px); }
.cart-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-btn__count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--blue); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
.cart-btn__count[hidden] { display: none; }
.cart-btn.is-bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.2); } }

/* ---------- Boutique ---------- */
.shop-search { display: flex; align-items: center; gap: .6rem; border: 1px solid var(--line); border-radius: 999px; padding: 0 1rem; background: #fff; min-width: min(320px, 100%); transition: border-color .3s, box-shadow .3s; }
.shop-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(27,92,255,.12); }
.shop-search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.shop-search input { border: 0; outline: 0; font: inherit; padding: .8rem 0; flex: 1; min-width: 0; background: transparent; }
.shop-filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .5rem 1rem; font-weight: 700; font-size: .875rem; color: var(--ink-2); transition: all .3s var(--ease); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip small { opacity: .6; margin-left: .25rem; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; }
.product {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; animation: pop .5s var(--ease) both;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product__media { position: relative; aspect-ratio: 4 / 3; background: var(--tint); overflow: hidden; cursor: pointer; border: 0; padding: 0; display: block; width: 100%; }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.product:hover .product__media img { transform: scale(1.07); }
.product__badge { position: absolute; top: 12px; left: 12px; font-size: .7rem; font-weight: 800; padding: .3rem .65rem; border-radius: 999px; background: #fff; color: var(--ink); }
.product__badge--out { background: var(--ink); color: #fff; }
.product__body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.product__cat { font-size: .75rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; }
.product__name { font-size: 1.05rem; font-weight: 700; line-height: 1.3; background: none; border: 0; padding: 0; text-align: left; color: var(--ink); }
.product__name:hover { color: var(--blue); }
.product__foot { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-top: auto; padding-top: .75rem; }
.price { font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.add-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; font-size: 1.3rem; display: grid; place-items: center; transition: transform .35s var(--ease), background .3s; flex: none; }
.add-btn:hover { transform: scale(1.1) rotate(90deg); }
.add-btn:disabled { background: var(--line); color: var(--muted); transform: none; cursor: not-allowed; }
.add-btn.is-added { background: var(--green); }
.shop-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 2.5rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius); }

/* Fiche produit */
.product-modal { border: 0; padding: 0; border-radius: 24px; width: min(900px, calc(100% - 24px)); max-height: calc(100vh - 32px); box-shadow: var(--shadow-lg); overflow: hidden; }
.product-modal::backdrop { background: rgba(10,31,61,.5); backdrop-filter: blur(6px); }
.product-modal[open] { animation: pop .45s var(--ease); }
.product-modal__inner { display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.product-modal__media { background: var(--tint); min-height: 320px; }
.product-modal__media img { width: 100%; height: 100%; object-fit: cover; }
.product-modal__body { padding: 2.25rem 2rem; display: flex; flex-direction: column; gap: .75rem; overflow: auto; max-height: calc(100vh - 32px); }
.product-modal__body h3 { font-size: 1.6rem; }
.product-modal__body > p:not(.price):not(.stock-info) { color: var(--ink-2); white-space: pre-line; }
.product-modal .drawer__close { position: absolute; top: 14px; right: 14px; z-index: 2; background: #fff; }
.stock-info { font-size: .85rem; font-weight: 700; color: var(--green); }
.stock-info.is-low { color: #b56b00; }
.stock-info.is-out { color: #c62a2f; }
.qty-row { display: flex; gap: .75rem; align-items: center; margin-top: auto; padding-top: 1rem; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 38px; height: 38px; border: 0; background: none; font-size: 1.1rem; border-radius: 50%; }
.qty button:hover { background: var(--tint); }
.qty output { min-width: 28px; text-align: center; font-weight: 700; }

/* Tiroir panier */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(10,31,61,.45); backdrop-filter: blur(4px); z-index: 70; animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; z-index: 80;
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .55s var(--ease); box-shadow: -30px 0 60px -20px rgba(10,31,61,.25);
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.3rem; }
.drawer__close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; transition: transform .3s var(--ease); }
.drawer__close:hover { transform: rotate(90deg); }
.drawer__view { display: none; flex-direction: column; flex: 1; min-height: 0; }
.drawer__view.is-active { display: flex; animation: stepIn .45s var(--ease); }
.drawer__scroll { flex: 1; overflow: auto; padding: 1.25rem 1.5rem; }
.drawer__foot { border-top: 1px solid var(--line); padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.drawer__note { font-size: .8rem; color: var(--muted); }
.btn--block { width: 100%; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.cart-total strong { font-size: 1.35rem; font-weight: 800; }
.cart-items { list-style: none; margin: 0; padding: .5rem 1.5rem; overflow: auto; flex: 1; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: .9rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); animation: stepIn .4s var(--ease); }
.cart-item img, .cart-item .ph { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--tint); }
.cart-item__name { font-weight: 700; font-size: .9rem; line-height: 1.3; }
.cart-item__price { font-size: .85rem; color: var(--muted); }
.cart-item .qty button { width: 30px; height: 30px; font-size: 1rem; }
.cart-item .remove { background: none; border: 0; color: var(--muted); font-size: .8rem; text-decoration: underline; padding: 0; margin-top: .25rem; }
.cart-empty { text-align: center; color: var(--muted); padding: 3rem 0; }
.link-back { background: none; border: 0; color: var(--blue); font-weight: 700; padding: 0; margin-bottom: 1.25rem; }
.done { text-align: center; display: flex; flex-direction: column; gap: 1rem; align-items: center; justify-content: center; }
.done__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--green); color: #fff; font-size: 2rem; display: grid; place-items: center; animation: pop .6s var(--ease); }
.done p { color: var(--ink-2); }
body.no-scroll { overflow: hidden; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav, .header__cta { display: none; }
  .cart-btn { margin-left: auto; }
  .burger { display: block; margin-left: .25rem; }
  .product-modal__inner { grid-template-columns: 1fr; }
  .product-modal__media { min-height: 0; aspect-ratio: 16 / 10; }
  .product-modal { overflow: auto; }
  .product-modal__body { max-height: none; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 380px; justify-self: center; order: -1; margin-top: -1rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .devis, .about, .contact__inner { grid-template-columns: 1fr; }
  .devis__intro { position: static; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
  .timeline::before, .timeline::after { display: none; }
  .pillars, .help { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(odd) { padding-left: 0; border-left: 0; }
  .kpi:nth-child(n + 3) { border-top: 1px solid rgba(255,255,255,.12); }
  .collage { min-height: 400px; max-width: 560px; }
}
@media (max-width: 640px) {
  .kpis { grid-template-columns: 1fr; }
  .kpi, .kpi + .kpi { padding: 1.5rem 0; border-left: 0; }
  .kpi + .kpi { border-top: 1px solid rgba(255,255,255,.12); }
  .collage { min-height: 320px; }
}
@media (max-width: 640px) {
  .logo__text { font-size: .9rem; }
  .hero { padding-top: 100px; }
  .hero__visual { max-width: 280px; }
  .float-card { font-size: .75rem; padding: .5rem .75rem; }
  .cards { grid-template-columns: 1fr; }
  .choices { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; gap: 0; }
  .timeline { grid-template-columns: 1fr; }
  .section__head--row { flex-direction: column; align-items: start; }
  .contact__list > div { grid-template-columns: 1fr; gap: .25rem; }
  .search__field kbd { display: none; }
  .wizard__actions .btn { flex: 1 1 100%; }
  .wizard__actions [data-prev] { margin-right: 0; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__title .line > span { transform: none; }
}
