/* Laboratoire Luiz — biologie vivante, précision clinique, verre scientifique */

:root {
  color-scheme: dark;
  --ink: #04172f;
  --ink-2: #062347;
  --panel: #0a2b55;
  --panel-strong: #0d407d;
  --brand: #0c5da8;
  --brand-deep: #06427f;
  --sky: #6fc4f0;
  --paper: #f4f9fd;
  --muted: #b4cde3;
  --line: rgba(140, 195, 235, .28);
  --signal: #8fd0f5;
  --accent: #e82e86;
  --accent-soft: #ff8dc0;
  --danger: #ff9a8f;
  --glass: rgba(7, 38, 79, .58);
  --glass-hi: rgba(160, 205, 240, .14);
  --glass-edge: rgba(170, 215, 245, .30);
  --fill-soft: rgba(255, 255, 255, .05);
  --veil: 4, 23, 47;
  --glow: rgba(31, 122, 224, .30);
  --logo: #f4f9fd;
  --cell-edge: rgba(160, 210, 245, .46);
  --cell-body: rgba(31, 122, 224, .16);
  --net-line: 143, 208, 245;
  --net-hot: 232, 46, 134;
  --display: 'Manrope', system-ui, 'Segoe UI', sans-serif;
  --serif: 'Libre Caslon Display', 'Iowan Old Style', Georgia, serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --membrane-a: 56% 44% 52% 48% / 46% 56% 44% 54%;
  --membrane-b: 46% 54% 58% 42% / 56% 44% 56% 44%;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

:root[data-theme='light'] {
  color-scheme: light;
  --ink: #f1f7fc;
  --ink-2: #e3eef9;
  --panel: #ffffff;
  --panel-strong: #e5f1fb;
  --sky: #0c5da8;
  --paper: #05203f;
  --muted: #3a5b7c;
  --line: rgba(12, 93, 168, .26);
  --signal: #0c5da8;
  --accent: #d51f73;
  --accent-soft: #e82e86;
  --danger: #a8322b;
  --glass: rgba(255, 255, 255, .72);
  --glass-hi: rgba(255, 255, 255, .7);
  --glass-edge: rgba(12, 93, 168, .22);
  --fill-soft: rgba(6, 32, 66, .05);
  --veil: 241, 247, 252;
  --glow: rgba(31, 122, 224, .14);
  --logo: #0c5da8;
  --cell-edge: rgba(12, 93, 168, .42);
  --cell-body: rgba(12, 93, 168, .10);
  --net-line: 12, 93, 168;
  --net-hot: 213, 31, 115;
}

/* Scènes qui restent « nuit » dans les deux thèmes : précision et pied de page. */
.night {
  --ink: #04172f;
  --ink-2: #062347;
  --panel: #0a2b55;
  --paper: #f4f9fd;
  --muted: #b4cde3;
  --line: rgba(140, 195, 235, .28);
  --signal: #8fd0f5;
  --accent: #e82e86;
  --accent-soft: #ff8dc0;
  --glass: rgba(7, 38, 79, .58);
  --glass-hi: rgba(160, 205, 240, .14);
  --glass-edge: rgba(170, 215, 245, .30);
  --fill-soft: rgba(255, 255, 255, .05);
  --veil: 4, 23, 47;
  --logo: #f4f9fd;
  --cell-edge: rgba(160, 210, 245, .46);
  --cell-body: rgba(31, 122, 224, .16);
  color: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--display); font-size: 16px; line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: #fff; }
input, textarea { caret-color: var(--accent); }
* { scrollbar-width: thin; scrollbar-color: var(--brand) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--brand); border: 3px solid var(--ink); border-radius: 999px; }
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; border-radius: 12px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; line-height: 1.03; }
h1 em, h2 em { color: var(--signal); font-style: normal; }
p { text-wrap: pretty; }

/* Icônes dessinées (masques) */
.arr { display: inline-block; flex: none; width: 1.1em; height: 1.1em; background: currentColor; -webkit-mask: var(--i, var(--arrow)) center / contain no-repeat; mask: var(--i, var(--arrow)) center / contain no-repeat; }
.arr-ne { rotate: -45deg; }
.arr-down { rotate: 90deg; }
.arr-left { rotate: 180deg; }
.ico-x { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.ico-menu { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E"); }
.ico-contrast { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8.2' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M12 3.8a8.2 8.2 0 0 1 0 16.4z' fill='black'/%3E%3C/svg%3E"); }
.ico-check { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

/* Logo extrait du flyer, en masque : il prend la couleur du thème */
.logo-lockup { display: block; width: 84px; aspect-ratio: 316 / 520; background: var(--logo); -webkit-mask: url('Assets/logo-luiz.png') center / contain no-repeat; mask: url('Assets/logo-luiz.png') center / contain no-repeat; }

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 60; padding: 12px 18px; border-radius: 999px; background: var(--signal); color: var(--ink); font-weight: 700; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

/* Barre haute : une lamelle flottante */
.topbar { position: fixed; z-index: 30; top: 14px; left: 50%; translate: -50% 0; width: min(1360px, 94vw); min-height: 64px; display: flex; align-items: center; gap: 14px; padding: 8px 10px 8px 22px; border: 1px solid var(--glass-edge); border-radius: 999px; background: var(--glass); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.brand-mark { width: 30px; aspect-ratio: 334 / 420; background: var(--logo); -webkit-mask: url('Assets/logo-luiz-mark.png') center / contain no-repeat; mask: url('Assets/logo-luiz-mark.png') center / contain no-repeat; }
.brand-text b { display: block; font: 400 1.55rem/1 var(--serif); letter-spacing: .04em; }
.brand-text small { display: block; margin-top: 3px; color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.chapter-nav { display: flex; gap: 2px; margin-left: auto; }
.chapter-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 15px; border-radius: 999px; color: var(--muted); font-size: .84rem; font-weight: 600; transition: color .25s var(--ease), background .25s var(--ease); }
.chapter-nav a:hover, .chapter-nav a.is-current { color: var(--paper); background: var(--glass-hi); }
.chapter-nav a.is-current { box-shadow: inset 0 -2px 0 var(--accent); }
.contact-link .sm { display: none; }
.menu-toggle { display: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--paper); cursor: pointer; }
.menu-toggle:hover { border-color: var(--signal); }
.theme-toggle .ico-contrast { display: none; }
.theme-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: .8rem; font-weight: 600; transition: border-color .25s var(--ease), color .25s var(--ease); }
.theme-toggle:hover { border-color: var(--signal); color: var(--paper); }
.contact-link { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--signal); color: var(--ink); font-size: .84rem; font-weight: 700; transition: background .3s var(--ease), color .3s var(--ease); }
.contact-link:hover { background: var(--paper); }

/* Boutons */
.primary-cta { display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 28px; border: 1px solid var(--signal); border-radius: 999px; background: var(--signal); color: var(--ink); font-size: .95rem; font-weight: 700; cursor: pointer; transition: transform .35s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.primary-cta:hover { transform: translateY(-2px); background: var(--paper); border-color: var(--paper); }
.primary-cta:disabled { opacity: .6; cursor: progress; transform: none; }
.ghost-cta, .secondary-cta { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 1px solid var(--glass-edge); border-radius: 999px; background: var(--glass-hi); color: var(--paper); font-size: .95rem; font-weight: 600; cursor: pointer; backdrop-filter: blur(10px); transition: border-color .3s var(--ease), background .3s var(--ease); }
.ghost-cta:hover, .secondary-cta:hover { border-color: var(--signal); background: var(--glass); }
.secondary-cta { min-height: 44px; padding: 0 20px; border-color: transparent; background: transparent; color: var(--muted); font-size: .88rem; }
.secondary-cta:hover { color: var(--paper); }

/* Rayons de membrane interpolables : la même cellule passe de l'organique au géométrique au scroll (--geo) */
@property --r1 { syntax: '<percentage>'; inherits: false; initial-value: 56%; }
@property --r2 { syntax: '<percentage>'; inherits: false; initial-value: 44%; }
@property --r3 { syntax: '<percentage>'; inherits: false; initial-value: 52%; }
@property --r4 { syntax: '<percentage>'; inherits: false; initial-value: 48%; }
@property --r5 { syntax: '<percentage>'; inherits: false; initial-value: 46%; }
@property --r6 { syntax: '<percentage>'; inherits: false; initial-value: 56%; }
@property --r7 { syntax: '<percentage>'; inherits: false; initial-value: 44%; }
@property --r8 { syntax: '<percentage>'; inherits: false; initial-value: 54%; }
@keyframes membrane-p {
  from { --r1: 56%; --r2: 44%; --r3: 52%; --r4: 48%; --r5: 46%; --r6: 56%; --r7: 44%; --r8: 54%; }
  50% { --r1: 47%; --r2: 53%; --r3: 57%; --r4: 43%; --r5: 55%; --r6: 45%; --r7: 55%; --r8: 45%; }
  to { --r1: 52%; --r2: 48%; --r3: 45%; --r4: 55%; --r5: 50%; --r6: 52%; --r7: 48%; --r8: 50%; }
}

/* Cellules : membranes vivantes qui flottent lentement */
@keyframes membrane {
  from { border-radius: 56% 44% 52% 48% / 46% 56% 44% 54%; }
  50% { border-radius: 47% 53% 57% 43% / 55% 45% 55% 45%; }
  to { border-radius: 52% 48% 45% 55% / 50% 52% 48% 50%; }
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) rotate(-4deg) scale(.98); }
  to { transform: translate3d(var(--dx, 18px), var(--dy, -22px), 0) rotate(5deg) scale(1.03); }
}
@keyframes dilate { 0%, 100% { scale: 1; opacity: .5; } 50% { scale: 1.09; opacity: .28; } }
@keyframes breathe { from { scale: .97; } to { scale: 1.03; } }
@keyframes focus-in { from { opacity: 0; filter: blur(16px); scale: 1.1; } to { opacity: 1; filter: blur(0); scale: 1; } }
@keyframes rise { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
@keyframes swap { from { opacity: 0; translate: 0 12px; filter: blur(5px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }

.membrane { overflow: hidden; margin: 0; border-radius: var(--membrane-a); animation: membrane 18s ease-in-out infinite alternate; }
.cell-field { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; opacity: calc(1 - var(--calm, 0)); }
.cell { position: absolute; left: var(--x); top: var(--y); width: var(--s); aspect-ratio: 1; translate: 0 calc(var(--sec-y, 0) * var(--depth, .05) * -1px); border: 1px solid var(--cell-edge); border-radius: var(--membrane-a); background: radial-gradient(circle at 30% 26%, rgba(255, 255, 255, .34) 0 3%, transparent 18%), radial-gradient(circle at 62% 60%, rgba(232, 46, 134, .62) 0 6%, rgba(232, 46, 134, .16) 7% 20%, transparent 21%), radial-gradient(circle, transparent 52%, rgba(111, 196, 240, .20) 100%), var(--cell-body); box-shadow: 0 10px 22px rgba(2, 10, 24, .16); filter: blur(var(--blur, 0px)); animation: drift var(--d, 14s) ease-in-out var(--delay, 0s) infinite alternate, membrane calc(var(--d, 14s) * 1.3) ease-in-out infinite alternate; }
.cell::before { content: ''; position: absolute; inset: 17% 27% 31% 15%; border: 1px solid var(--cell-edge); border-radius: 50%; opacity: .7; }

/* Reveal : mise au point à l'entrée dans le champ */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; translate: 0 20px; filter: blur(8px); transition: opacity .9s var(--ease) var(--rd, 0s), translate .9s var(--ease) var(--rd, 0s), filter .9s var(--ease) var(--rd, 0s); }
  .js .reveal.is-in { opacity: 1; translate: 0 0; filter: blur(0); }
}

/* HERO : entrer dans le vivant */
.journey { position: relative; }
@media (prefers-reduced-motion: no-preference) { .hero { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 12vh), transparent 100%); mask-image: linear-gradient(180deg, #000 calc(100% - 12vh), transparent 100%); } }
.hero { position: relative; z-index: 2; isolation: isolate; display: flex; align-items: center; min-height: 100svh; padding: clamp(112px, 17vh, 180px) 6vw clamp(72px, 10vh, 120px); overflow: hidden; background: radial-gradient(110% 80% at 80% 42%, var(--glow), transparent 62%), radial-gradient(60% 50% at 10% 92%, rgba(232, 46, 134, .10), transparent 60%), linear-gradient(180deg, var(--ink), var(--ink-2)); }
.hero-visual { position: absolute; z-index: 0; top: 9vh; right: -1vw; width: min(66vw, 1080px); height: 84vh; translate: 0 calc(var(--hero-p, 0) * 36px); }
.hero-visual::before, .hero-visual::after { content: ''; position: absolute; border: 1px solid var(--line); border-radius: var(--membrane-b); animation: membrane 23s ease-in-out infinite alternate-reverse; }
.hero-visual::before { inset: -16px; }
.hero-visual::after { inset: -42px; opacity: .5; animation-duration: 29s; }
.hero-membrane { position: absolute; inset: 0; transform: scale(calc(1 + var(--hero-q, 0) * .45)); filter: blur(calc(var(--hero-q, 0) * 12px)); }
.hero-membrane img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; filter: contrast(1.04) saturate(1.05); animation: focus-in 2.2s var(--ease) both; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%); mask-image: linear-gradient(90deg, transparent 0, #000 24%); }
.hero-copy { position: relative; z-index: 2; max-width: min(47vw, 640px); opacity: calc(1 - var(--hero-q, 0) * 1.4); translate: 0 calc(var(--hero-q, 0) * -36px); }
.hero-lockup { display: flex; align-items: center; gap: 18px; margin-bottom: 34px; }
.hero-lockup .logo-lockup { width: 76px; animation: focus-in 1.8s var(--ease) .25s both; }
.lockup-sub { padding-left: 18px; border-left: 1px solid var(--line); color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: .1em; line-height: 1.5; text-transform: uppercase; animation: rise 1.2s var(--ease) .9s both; }
.hero h1 { font-size: clamp(2.7rem, 5.2vw, 5.4rem); animation: rise 1.2s var(--ease) .5s both; }
.hero-lede { max-width: 44ch; margin: 30px 0 38px; color: var(--muted); font-size: clamp(1.02rem, 1.3vw, 1.2rem); line-height: 1.65; animation: rise 1.2s var(--ease) .7s both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; animation: rise 1.2s var(--ease) .9s both; }

/* PARCOURS : observer, comprendre, analyser */
.stage-shell { position: sticky; top: 0; z-index: 3; height: 100svh; min-height: 640px; overflow: hidden; isolation: isolate; background: var(--ink-2); --p: 0; --focus: 1; --net: 0; --form: 1; --geo: 0; --exit: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .stage-shell { margin-top: -100svh; clip-path: ellipse(0 0 at 70% 42%); }
  .js .journey-track { height: 900vh; }
}
.stage-bg { position: absolute; inset: 0; transform-origin: 60% 30%; transform: scale(calc(1.1 - var(--p) * .1)); filter: blur(calc(var(--focus) * 18px)) contrast(1.04) saturate(1.06); will-change: transform, filter; }
.stage-layer { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; opacity: 0; transition: opacity 1.3s var(--ease); }
.stage-layer.is-on { opacity: 1; }
.stage-video { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; mix-blend-mode: soft-light; filter: hue-rotate(120deg) saturate(.8); -webkit-mask-image: linear-gradient(transparent 0 20%, #000 34%, #000 80%, transparent 90%); mask-image: linear-gradient(transparent 0 20%, #000 34%, #000 80%, transparent 90%); pointer-events: none; transition: opacity .8s var(--ease); }
.stage-video.is-ready { opacity: .22; }
.stage-cells { z-index: 2; }
.stage-rings { position: absolute; z-index: 2; left: 60%; top: 50%; width: min(64vw, 900px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: repeating-radial-gradient(circle at 50% 50%, transparent 0 62px, rgba(var(--net-line), .16) 63px 64px); -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 72%); mask-image: radial-gradient(circle, #000 30%, transparent 72%); opacity: calc((.4 + var(--net) * .3) * (1 - var(--exit, 0) * .6)); transform: scale(calc(1 + var(--exit, 0) * .7)); animation: breathe 18s ease-in-out infinite alternate; pointer-events: none; }
.stage-rings::after { content: ''; position: absolute; inset: 16%; border: 1px solid rgba(var(--net-line), .34); rotate: 45deg; opacity: var(--net); }
.stage-network { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; opacity: calc(var(--net) * (1 - var(--exit, 0))); pointer-events: none; }

.cells-map { position: absolute; z-index: 6; left: 34%; right: 22%; top: 15%; bottom: 17%; translate: calc(var(--exit, 0) * 4vw) 0; scale: calc(1 - var(--exit, 0) * .82); opacity: max(0, calc(1 - var(--exit, 0) * 2)); }
.service-cell { --cs: 110px; position: absolute; left: var(--cx); top: var(--cy); width: var(--cs); aspect-ratio: 1; translate: -50% -50%; display: grid; place-items: center; padding: 0; border: 1px solid var(--cell-edge); border-radius: var(--membrane-a); background: radial-gradient(circle at 30% 26%, rgba(255, 255, 255, .3) 0 3%, transparent 20%), radial-gradient(circle at 64% 62%, rgba(232, 46, 134, .34), transparent 46%), var(--glass); color: var(--paper); cursor: pointer; box-shadow: 0 10px 24px rgba(2, 10, 24, .24); scale: 1; transition: scale .8s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease); animation: drift 13s ease-in-out infinite alternate, membrane 17s ease-in-out infinite alternate; --dx: 7px; --dy: -8px; }
.service-cell { width: max(44px, calc(var(--cs) * (.22 + .78 * var(--form, 1)))); border-radius: calc(var(--r1) * (1 - var(--geo, 0)) + 26% * var(--geo, 0)) calc(var(--r2) * (1 - var(--geo, 0)) + 26% * var(--geo, 0)) calc(var(--r3) * (1 - var(--geo, 0)) + 26% * var(--geo, 0)) calc(var(--r4) * (1 - var(--geo, 0)) + 26% * var(--geo, 0)) / calc(var(--r5) * (1 - var(--geo, 0)) + 26% * var(--geo, 0)) calc(var(--r6) * (1 - var(--geo, 0)) + 26% * var(--geo, 0)) calc(var(--r7) * (1 - var(--geo, 0)) + 26% * var(--geo, 0)) calc(var(--r8) * (1 - var(--geo, 0)) + 26% * var(--geo, 0)); animation: drift 13s ease-in-out infinite alternate, membrane-p 17s ease-in-out infinite alternate; }
.cell-label { opacity: calc((var(--form, 1) - .35) * 1.6); }
.service-cell:nth-child(2n) { animation-duration: 15s, 21s; animation-delay: -4s, -6s; }
.service-cell:nth-child(3n) { animation-duration: 11s, 19s; animation-delay: -7s, -3s; }
.service-cell::before { content: ''; position: absolute; inset: -10px; border: 1px solid var(--accent); border-radius: 50%; opacity: 0; scale: .92; transition: opacity .6s var(--ease), border-radius .9s var(--ease); pointer-events: none; }
.service-cell:hover { border-color: var(--signal); scale: 1.06; }
.service-cell.is-active { border-color: var(--accent-soft); scale: 1.18; }
.service-cell.is-active::before { opacity: .55; animation: dilate 6s ease-in-out infinite; }
.cell-nucleus { position: absolute; left: 56%; top: 62%; width: 15%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #ffc6e0, var(--accent) 68%); box-shadow: 0 5px 10px rgba(2, 10, 24, .3); transition: scale .6s var(--ease); }
.service-cell.is-active .cell-nucleus { scale: 1.25; }
.cell-label { position: relative; translate: 0 -14%; max-width: 88%; font-size: .8rem; font-weight: 700; line-height: 1.2; text-align: center; }
.cell-accueil { --cx: 14%; --cy: 72%; --cs: 112px; }
.cell-analyses { --cx: 38%; --cy: 24%; --cs: 132px; }
.cell-hemato { --cx: 80%; --cy: 54%; --cs: 134px; }
.cell-microbio { --cx: 50%; --cy: 62%; --cs: 142px; }
.cell-domicile { --cx: 22%; --cy: 44%; --cs: 120px; }
.cell-specialites { --cx: 76%; --cy: 14%; --cs: 128px; }
/* Cadrage par image : les cellules s'écartent des visages, l'accueil est retourné pour sortir la réceptionniste de derrière le menu */
.cells-map { transition: transform 1.2s var(--ease); }
.stage-shell[data-layer='s1'] .cells-map { transform: translate(7vw, 6vh); }
.stage-layer[data-layer='s0'] { transform: scaleX(-1); }
.stage-cells { transition: opacity .8s var(--ease); }
.stage-shell[data-layer='s0'] .stage-cells { opacity: 0; }
/* Analyser : les anneaux deviennent des carrés arrondis, plus géométriques */
.stage-shell[data-chapter='analyser'] .service-rail { opacity: 0; visibility: hidden; translate: 28px 0; }
.stage-shell[data-chapter='analyser'] .service-cell::before { border-radius: 24%; opacity: .4; border-color: var(--signal); }

.info-panel { opacity: max(0, calc(1 - var(--exit, 0) * 3.2)); position: absolute; z-index: 7; left: 4vw; bottom: 12%; width: min(410px, 32vw); padding: 30px 32px 24px; border: 1px solid var(--glass-edge); border-radius: 44px 96px 44px 96px; background: var(--glass); backdrop-filter: blur(20px) saturate(1.25); -webkit-backdrop-filter: blur(20px) saturate(1.25); }
.info-panel h2 { font-size: clamp(2.2rem, 3.4vw, 3.3rem); }
.panel-question { margin: 18px 0 16px; color: var(--signal); font-size: 1rem; font-weight: 700; line-height: 1.4; }
.panel-description { max-width: 40ch; margin: 0 0 20px; color: var(--paper); font-size: .95rem; line-height: 1.6; }
.panel-action { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px; border: 1px solid var(--glass-edge); border-radius: 999px; background: var(--glass-hi); color: var(--paper); font-size: .88rem; font-weight: 700; cursor: pointer; transition: border-color .3s var(--ease), background .3s var(--ease); }
.panel-action:hover { border-color: var(--signal); background: var(--glass); }
.info-panel.is-swapping > * { animation: swap .65s var(--ease) both; }
.info-panel.is-swapping > :nth-child(2) { animation-delay: .06s; }
.info-panel.is-swapping > :nth-child(3) { animation-delay: .12s; }
.info-panel.is-swapping > :nth-child(4) { animation-delay: .18s; }

.service-rail { position: absolute; z-index: 7; top: 15%; right: 3vw; width: min(262px, 20vw); padding: 14px; transition: opacity .8s var(--ease), translate .8s var(--ease), visibility .8s; border: 1px solid var(--glass-edge); border-radius: 64px 28px 64px 28px; background: var(--glass); backdrop-filter: blur(20px) saturate(1.25); -webkit-backdrop-filter: blur(20px) saturate(1.25); }
.service-list { display: grid; gap: 2px; }
.service-button { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: center; width: 100%; min-height: 52px; padding: 8px 12px; border: 0; border-radius: 22px; background: transparent; color: var(--muted); cursor: pointer; text-align: left; transition: background .3s var(--ease), color .3s var(--ease); }
.service-button:hover, .service-button.is-active { background: var(--glass-hi); color: var(--paper); }
.service-button.is-active { box-shadow: inset 3px 0 0 var(--accent); }
.service-name { display: block; font-size: .9rem; font-weight: 700; }
.service-detail { display: block; margin-top: 1px; color: var(--muted); font-size: .8rem; }

.step-row { opacity: max(0, calc(1 - var(--exit, 0) * 3.2)); position: absolute; z-index: 7; bottom: 3%; left: 4vw; display: flex; align-items: center; gap: 22px; padding: 2px 24px; border: 1px solid var(--glass-edge); border-radius: 999px; background: var(--glass); backdrop-filter: blur(20px) saturate(1.25); -webkit-backdrop-filter: blur(20px) saturate(1.25); }
.step-row-title { min-width: 96px; margin: 0; color: var(--muted); font-size: .8rem; font-weight: 600; }
.steps { display: grid; grid-template-columns: repeat(6, auto); width: min(760px, 58vw); }
.step { position: relative; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: .8rem; font-weight: 600; text-align: left; white-space: nowrap; }
.step::after { content: ''; flex: 1; height: 1px; margin-right: 8px; background: var(--line); }
.step:last-child::after { display: none; }
.step-dot { display: block; width: 11px; height: 11px; border: 1px solid var(--muted); border-radius: 50%; background: transparent; transition: background .4s var(--ease), scale .4s var(--ease), border-color .4s var(--ease); }
.step.is-active { color: var(--paper); }
.step.is-active .step-dot { border-color: var(--accent); background: var(--accent); scale: 1.4; }
.step.is-visited .step-dot { border-color: var(--signal); background: var(--signal); }

.journey-track { position: relative; height: 800vh; margin-top: -100svh; }

/* PRÉCISION : garantir */
.precision { position: relative; z-index: 8; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 3vw; align-items: center; min-height: 112svh; margin-top: -70vh; padding: 16vh 6vw 14vh; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16vh, #000 calc(100% - 14vh), transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 16vh, #000 calc(100% - 14vh), transparent 100%); background: radial-gradient(90% 70% at 74% 48%, #0c3f7d 0%, #072a55 40%, transparent 80%), var(--ink); }
.precision-optics { position: absolute; z-index: 0; left: 74%; top: 50%; width: min(84vw, 940px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: repeating-radial-gradient(circle at 50% 50%, transparent 0 52px, rgba(143, 208, 245, .10) 53px 54px), radial-gradient(circle, rgba(31, 122, 224, .34), transparent 62%); -webkit-mask-image: radial-gradient(circle, #000 32%, transparent 70%); mask-image: radial-gradient(circle, #000 32%, transparent 70%); transform: scale(calc(.55 + var(--enter, 1) * .45 + var(--leave, 0) * .6)); opacity: calc(var(--enter, 1) * (1 - var(--leave, 0))); animation: breathe 16s ease-in-out infinite alternate; }
.precision-scope { position: relative; z-index: 2; height: min(92vh, 980px); justify-self: center; margin: 0; }
.precision-scope img { display: block; width: auto; height: 100%; transform: scale(calc(.9 + var(--enter, 1) * .1 - var(--leave, 0) * .1)); opacity: calc(.15 + var(--enter, 1) * .85 - var(--leave, 0) * .6); filter: blur(calc((1 - var(--enter, 1)) * 9px + var(--leave, 0) * 8px)) drop-shadow(0 34px 44px rgba(0, 0, 0, .42)); }
.precision-copy { position: relative; z-index: 3; grid-row: 1; grid-column: 1; opacity: calc(1 - var(--leave, 0) * .7); }
.precision-scope { grid-row: 1; grid-column: 2; }
.precision h2 { font-size: clamp(2.6rem, 5vw, 5rem); }
.precision-lede { max-width: 48ch; margin: 24px 0 0; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.lamellae { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin: 44px 0 16px; padding: 0; list-style: none; }
.lamella { position: relative; padding: 24px 28px 30px; border: 1px solid var(--glass-edge); border-radius: 34px 70px 34px 70px; background: linear-gradient(135deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04)); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 24px rgba(0, 0, 0, .2); }
.lamella h3 { max-width: 20ch; font-size: 1.08rem; font-weight: 700; line-height: 1.25; }
.lamella p { max-width: 34ch; margin: 8px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.lamella::before { content: ''; position: absolute; top: 22px; right: 28px; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #ffc6e0, var(--accent) 70%); transition: scale .5s var(--ease); }
.lamella::after { content: ''; position: absolute; left: 28px; bottom: 15px; width: 62%; height: 1px; background: linear-gradient(90deg, var(--signal), transparent); transform-origin: left; transform: scaleX(1); opacity: .25; transition: opacity .8s var(--ease); }
.lamella:hover::before { scale: 1.5; }
.lamella:hover::after { opacity: 1; }
.l-1 { grid-column: 1 / span 4; }
.l-2 { grid-column: 3 / span 4; border-radius: 70px 34px 70px 34px; }
.l-3 { grid-column: 1 / span 3; border-radius: 28px 60px 28px 60px; }
.l-4 { grid-column: 4 / span 3; border-radius: 60px 28px 60px 28px; }
.specialty { margin-top: 0; max-width: 620px; border-radius: 40px 84px 40px 84px; background: linear-gradient(135deg, rgba(31, 122, 224, .26), rgba(255, 255, 255, .05)); }

/* ACCOMPAGNER : retour à l'humain */
.accompany { position: relative; z-index: 8; isolation: isolate; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 5vw; align-items: center; min-height: 100svh; padding: 14vh 6vw; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16vh); mask-image: linear-gradient(180deg, transparent 0, #000 16vh); background: radial-gradient(46% 42% at 10% 58%, rgba(232, 46, 134, .12), transparent 72%), linear-gradient(180deg, var(--ink-2), var(--ink)); }
.cluster { position: relative; z-index: 2; height: min(82vh, 780px); opacity: max(0, calc(1 - var(--calm, 0) * 1.2)); }
.bubble { position: absolute; border: 1px solid var(--glass-edge); scale: calc(clamp(.25, .25 + var(--enter, 1) * 1.5 - var(--i, 0) * .14, 1) * (1 - var(--calm, 0) * .35)); opacity: clamp(0, calc(var(--enter, 1) * 2.4 - var(--i, 0) * .22), 1); box-shadow: 0 14px 28px rgba(2, 10, 24, .3); animation: membrane 21s ease-in-out infinite alternate, drift var(--d, 17s) ease-in-out var(--delay, 0s) infinite alternate; --dx: 6px; --dy: -9px; }
.bubble img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.b-main { left: 0; top: 9%; width: 62%; aspect-ratio: 5 / 6; --d: 19s; }
.b-main img { object-position: 60% 30%; }
.b-1 { right: 0; top: 0; width: 36%; aspect-ratio: 1; --d: 15s; --delay: -4s; }
.b-1 img { object-position: 55% 40%; }
.b-2 { right: 5%; top: 37%; width: 30%; aspect-ratio: 1; --d: 21s; --delay: -9s; }
.b-2 img { object-position: 50% 40%; }
.b-3 { left: 8%; bottom: 0; width: 33%; aspect-ratio: 1; --d: 16s; --delay: -6s; }
.b-3 img { object-position: 50% 30%; }
.b-4 { right: 0; bottom: 3%; width: 40%; aspect-ratio: 1; --d: 18s; --delay: -2s; }
.b-4 img { object-position: 40% 50%; }
.b-5 { left: 60%; top: 30%; width: 13%; aspect-ratio: 1; --d: 12s; --delay: -7s; }
.b-5 img { object-position: 55% 45%; }
.b-6 { left: 46%; bottom: 8%; width: 12%; aspect-ratio: 1; --d: 13s; --delay: -3s; }
.b-6 img { object-position: 30% 45%; }
.illustration-note { margin: 22px 0 0; color: var(--muted); font-size: .8rem; }
.accompany-copy { position: relative; z-index: 2; }
.accompany h2 { font-size: clamp(2.4rem, 4.4vw, 4.4rem); }
.accompany-lede { max-width: 50ch; margin: 24px 0 32px; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.accompany-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.contact-card { display: grid; gap: 6px; margin-top: 40px; padding: 26px 30px; border: 1px solid var(--glass-edge); border-radius: 36px 72px 36px 72px; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-style: normal; }
.contact-card > div { display: grid; grid-template-columns: 104px 1fr; gap: 16px; align-items: baseline; padding: 6px 0; }
.contact-card span { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.contact-card p { margin: 0; line-height: 1.6; }
.contact-card a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 20px; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; transition: color .25s var(--ease), text-decoration-color .25s var(--ease); }
.contact-card a:hover { color: var(--signal); text-decoration-color: var(--signal); }

/* Pied de page : retour au calme */
.site-footer { position: relative; z-index: 9; display: grid; justify-items: center; gap: 30px; padding: 16vh 6vw 7vh; background: radial-gradient(60% 45% at 50% 55%, rgba(31, 122, 224, .2), transparent 74%), var(--ink); text-align: center; }
.site-footer::before { content: ''; position: absolute; left: 0; right: 0; top: -110px; height: 110px; background: linear-gradient(180deg, transparent, var(--ink)); pointer-events: none; }
.footer-logo { width: 70px; transform: scale(calc(.8 + var(--calm, 1) * .2)); filter: blur(calc((1 - var(--calm, 1)) * 10px)); opacity: calc(.25 + var(--calm, 1) * .75); }
.footer-contact { display: grid; gap: 4px; margin-top: 8px; font-style: normal; color: var(--muted); }
.footer-contact p { margin: 0; }
.footer-contact a { display: inline-flex; align-items: center; min-height: 44px; margin: 0 10px; color: var(--paper); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; }
.site-footer h2 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
.footer-meta { max-width: 62ch; margin: 22px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }

/* MODALE DE RENDEZ-VOUS */
body.quote-is-open { overflow: hidden; }
.quote-modal[hidden], .quote-step[hidden], .quote-success[hidden], .quote-form[hidden] { display: none !important; }
.quote-modal { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 4vh 4vw; }
.quote-backdrop { position: absolute; inset: 0; background: rgba(2, 10, 22, .78); backdrop-filter: blur(10px); }
.quote-dialog { position: relative; z-index: 1; width: min(980px, 100%); max-height: 92vh; overflow: auto; --pad-x: clamp(24px, 4vw, 52px); --pad-b: clamp(40px, 5vw, 64px); padding: clamp(24px, 4vw, 52px) var(--pad-x) 0; scroll-padding-bottom: 140px; border: 1px solid var(--glass-edge); border-radius: 44px 96px 60px 44px; background: var(--panel); color: var(--paper); box-shadow: 0 16px 30px rgba(0, 0, 0, .3); }
.quote-dialog-head { display: flex; justify-content: space-between; gap: 28px; }
.quote-dialog h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
.quote-intro { max-width: 55ch; margin: 20px 0 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.quote-close { display: grid; flex: 0 0 auto; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: border-color .25s var(--ease), color .25s var(--ease); }
.quote-close:hover { border-color: var(--signal); color: var(--paper); }
.quote-close .arr { width: 18px; height: 18px; }
.quote-progress { display: flex; align-items: center; gap: 12px; margin: 30px 0 28px; color: var(--muted); font-size: .8rem; font-weight: 600; }
.quote-progress-step { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.quote-progress-step b { color: var(--line); font-weight: 700; font-variant-numeric: tabular-nums; }
.quote-progress-step.is-active, .quote-progress-step.is-complete { color: var(--paper); }
.quote-progress-step.is-active b, .quote-progress-step.is-complete b { color: var(--accent); }
.quote-progress-step.is-active { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }
.quote-progress-line { flex: 1; height: 1px; background: var(--line); }
.quote-step-heading { margin-bottom: 24px; }
.quote-step-heading h3 { margin: 0 0 8px; font: 400 clamp(1.6rem, 3vw, 2.1rem)/1.1 var(--serif); }
.quote-step-heading p, .quote-form-foot p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.quote-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quote-form .quote-choice { min-width: 0; display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 22px 38px 22px 38px; background: var(--fill-soft); color: var(--paper); cursor: pointer; font: inherit; letter-spacing: 0; text-transform: none; transition: border-color .25s var(--ease), background .25s var(--ease); }
.quote-choice:hover, .quote-choice:has(input:checked) { border-color: var(--signal); background: var(--glass-hi); }
.quote-form .quote-choice input { flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--accent); }
.quote-choice span { min-width: 0; display: grid; gap: 6px; }
.quote-choice b { font-size: .95rem; }
.quote-choice small { color: var(--muted); font-size: .8rem; line-height: 1.45; overflow-wrap: anywhere; }
.quote-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.quote-form label, .quote-message { display: grid; gap: 8px; color: var(--muted); font-size: .84rem; font-weight: 600; }
.quote-form input:not([type='radio']):not([type='checkbox']), .quote-form select, .quote-form textarea { width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--ink); color: var(--paper); font: 500 .95rem var(--display); }
.quote-form textarea { resize: vertical; line-height: 1.55; }
.quote-form input::placeholder, .quote-form textarea::placeholder { color: var(--muted); opacity: .75; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { border-color: var(--signal); outline: 2px solid color-mix(in srgb, var(--signal) 30%, transparent); outline-offset: 2px; }
.quote-services { margin: 26px 0 0; padding: 20px 0 0; border: 0; border-top: 1px solid var(--line); }
.quote-services legend { padding: 0; color: var(--paper); font-size: .92rem; font-weight: 700; }
.quote-services legend span { margin-left: 12px; color: var(--muted); font-size: .8rem; font-weight: 500; }
.quote-service-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.quote-service-group { min-width: 0; padding: 18px 18px 8px; border: 1px solid var(--line); border-radius: 22px 40px 22px 40px; background: var(--fill-soft); }
.quote-service-group p { margin: 0 0 6px; color: var(--signal); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.quote-service-group label { display: flex; gap: 10px; align-items: center; min-height: 44px; color: var(--paper); font-size: .88rem; font-weight: 500; cursor: pointer; }
.quote-service-group input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.quote-error { margin: 16px 0 0; color: var(--danger); font-size: .86rem; font-weight: 600; }
.quote-error a { color: inherit; text-decoration: underline; }
.quote-message { margin-top: 26px; }
.quote-honey { position: absolute !important; left: -9999px; width: 1px !important; height: 1px !important; opacity: 0; }
.quote-form .quote-consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 26px; color: var(--paper); font-size: .88rem; font-weight: 500; line-height: 1.5; cursor: pointer; }
.quote-form .quote-consent input { flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--accent); }
.quote-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.quote-form input[type='checkbox'], .quote-form input[type='radio'] { appearance: none; -webkit-appearance: none; display: inline-grid; place-content: center; flex: 0 0 20px; width: 20px; height: 20px; margin: 0; padding: 0; border: 1.5px solid var(--muted); border-radius: 6px; background: transparent; cursor: pointer; transition: background .25s var(--ease), border-color .25s var(--ease); }
.quote-form input[type='radio'] { border-radius: 50%; }
.quote-form input[type='checkbox']:checked { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.quote-form input[type='radio']:checked { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 44%, transparent 48%); }
.quote-form-foot > div { display: grid; gap: 5px; }
.quote-form-foot { position: sticky; bottom: 0; z-index: 2; margin: 26px calc(-1 * var(--pad-x)) 0; padding: 20px var(--pad-x) var(--pad-b); background: var(--panel); }
.quote-form-foot .primary-cta { flex: none; white-space: nowrap; }
.quote-dialog.is-sent .quote-dialog-head > div, .quote-dialog.is-sent .quote-progress { display: none; }
.quote-dialog.is-sent .quote-dialog-head { justify-content: flex-end; }
.quote-success { padding: 8vh 2vw calc(4vh + var(--pad-b, 40px)); }
.quote-success-mark { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 26px; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); }
.quote-success-mark .arr { width: 26px; height: 26px; }
.quote-success h3 { margin: 0; font: 400 clamp(2.2rem, 5vw, 3.8rem)/1.04 var(--serif); }
.quote-success h3 em { color: var(--signal); font-style: normal; }
.quote-success > p { max-width: 54ch; margin: 22px 0 28px; color: var(--muted); font-size: .98rem; line-height: 1.65; }
.quote-success-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.print-sheet { display: none; }

/* Adaptations */
@media (max-width: 1099px) {
  .chapter-nav { display: none; }
  .theme-toggle { margin-left: auto; }
  .menu-toggle { display: grid; }
  .topbar.menu-open .chapter-nav { position: absolute; top: calc(100% + 8px); right: 0; left: 0; display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 10px; border: 1px solid var(--glass-edge); border-radius: 32px 44px 32px 44px; background: rgba(var(--veil), .95); backdrop-filter: blur(20px) saturate(1.25); -webkit-backdrop-filter: blur(20px) saturate(1.25); }
  .topbar.menu-open .chapter-nav a { min-height: 48px; padding: 0 18px; font-size: .95rem; }
}

@media (max-width: 900px) {
  .topbar { top: 10px; width: 94vw; min-height: 60px; padding-left: 16px; }
  .brand-text small { display: none; }
  .hero { align-items: flex-start; padding: 96px 6vw 96px; }
  .hero-visual { top: 74px; right: -14vw; width: 128vw; height: 40svh; }
  .hero .cell-field { inset: 74px 0 auto 0; height: 40svh; }
  .hero-membrane img { -webkit-mask-image: none; mask-image: none; }
  .hero-copy { max-width: 100%; margin-top: calc(40svh + 4px); }
  .hero-lockup { margin-bottom: 22px; }
  .hero-lockup .logo-lockup { width: 50px; }
  .hero h1 { font-size: clamp(2.5rem, 11vw, 4rem); }
  .hero-lede { margin: 16px 0 22px; }
  /* Scène mobile : le haut reste à la photo (visages) ; ruban de cellules, services, panneau et étapes s'empilent en bas selon leur hauteur réelle */
  .stage-shell { min-height: 640px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 0 4vw 12px; }
  .cells-map, .service-rail, .info-panel, .step-row { position: relative; inset: auto; width: auto; flex: none; }
  .stage-cells { display: none; }
  .service-rail { order: 2; padding: 6px; border-radius: 30px 44px 30px 44px; }
  .rail-heading { display: none; }
  .service-list { display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(90deg, #000 0, #000 84%, transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 84%, transparent 100%); padding-right: 28px; }
  .service-button { flex: 0 0 auto; display: block; width: auto; min-width: 104px; min-height: 44px; padding: 8px 14px; border-radius: 22px; }
  .service-detail { display: none; }
  .service-button { scroll-snap-align: center; }
  .cells-map { order: 1; height: 76px; margin: 0 3vw; }
  .stage-shell[data-layer] .cells-map { transform: none; }
  .service-cell { --cs: 46px !important; }
  .cell-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .service-cell.is-active { scale: 1.24; }
  .cell-accueil { --cx: 7%; --cy: 36% !important; }
  .cell-analyses { --cx: 24.2%; --cy: 64% !important; }
  .cell-hemato { --cx: 41.4%; --cy: 34% !important; }
  .cell-microbio { --cx: 58.6%; --cy: 66% !important; }
  .cell-domicile { --cx: 75.8%; --cy: 36% !important; }
  .cell-specialites { --cx: 93%; --cy: 62% !important; }
  .info-panel { order: 3; padding: 22px 24px 18px; border-radius: 36px 60px 36px 60px; }
  .info-panel h2 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .panel-question { display: none; }
  .panel-description { margin: 12px 0 14px; font-size: .88rem; }
  .step-row { order: 4; gap: 12px; padding: 0 14px; }
  .step-row-title { display: none; }
  .steps { width: 100%; }
  .step { justify-content: center; }
  .step::after, .step-name { display: none; }
  .precision { grid-template-columns: 1fr; min-height: auto; padding: 14vh 6vw 10vh; gap: 4vh; }
  .precision-scope { grid-row: 1; grid-column: 1; height: 54svh; }
  .precision-copy { grid-row: 2; grid-column: 1; }
  .precision-optics { left: 50%; top: 27%; width: 130vw; }
  .lamellae { grid-template-columns: 1fr; }
  .l-1, .l-2, .l-3, .l-4 { grid-column: 1; }
  .accompany { grid-template-columns: 1fr; min-height: auto; padding: 12vh 6vw; gap: 5vh; }
  .cluster { height: 56svh; }
  .contact-card { padding: 22px 22px; }
  .contact-card > div { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 760px) {
  .quote-modal { padding: 0; }
  .quote-dialog { width: 100%; height: 100%; max-height: none; --pad-x: 6vw; --pad-b: 34px; padding: 26px var(--pad-x) 0; border-radius: 0; }
  .quote-form-grid, .quote-service-groups, .quote-choice-grid { grid-template-columns: 1fr; }
  .quote-progress { gap: 6px; margin: 24px 0; }
  .quote-progress-line { min-width: 8px; }
  .quote-progress-step { gap: 4px; font-size: 0; }
  .quote-progress-step b { font-size: .8rem; }
  .quote-progress-step.is-active { font-size: .8rem; }
  .quote-form-foot { align-items: flex-start; flex-direction: column; }
  .quote-form-foot .primary-cta { align-self: stretch; justify-content: space-between; }
  .quote-form-foot .secondary-cta { order: 2; }
}

@media (max-width: 480px) {
  .brand-text { display: none; }
  .contact-link .lg { display: none; }
  .contact-link .sm { display: inline; }
  .theme-toggle { width: 44px; padding: 0; justify-content: center; }
  .theme-toggle .tt-text { display: none; }
  .theme-toggle .ico-contrast { display: inline-block; width: 20px; height: 20px; }
  .contact-link { padding: 0 14px; font-size: .78rem; }
  .hero-actions .primary-cta { width: 100%; justify-content: space-between; }
  .hero-actions .ghost-cta { display: none; }
}

/* Mouvement réduit : composition statique, sans scroll animé ni dérive */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; }
  .stage-bg { transform: scale(1.08); filter: none; }
  .hero-membrane img { scale: 1.05; }
  .hero-visual { translate: 0 0; }
  .cell { translate: 0 0; }
  .hero-membrane { transform: none; filter: none; }
  .hero-copy { opacity: 1; translate: 0 0; }
  .bubble { scale: 1; opacity: 1; }
  .cluster { opacity: 1; }
  .footer-logo { transform: none; filter: none; opacity: 1; }
  .cell-field { opacity: 1; }
}

/* Impression de la fiche de demande */
@media print {
  @page { size: A4; margin: 16mm; }
  body { background: #fff !important; color: #0b1b2a !important; overflow: visible !important; }
  body > *:not(.print-sheet) { display: none !important; }
  .print-sheet { display: block; color: #0b1b2a; font-family: Arial, sans-serif; }
  .print-sheet header { display: flex; align-items: center; gap: 16px; }
  .print-luiz-mark { display: grid; place-items: center; width: 58px; height: 58px; background: #075b8c; color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .08em; }
  .print-sheet header span, .print-sheet header strong { display: block; }
  .print-sheet header span { color: #075b8c; font-size: 10px; letter-spacing: .14em; }
  .print-sheet header strong { margin-top: 6px; font-size: 19px; }
  .print-sheet-rule { height: 3px; margin: 22px 0 14px; background: #075b8c; }
  .print-sheet-date { color: #536b77; font-size: 11px; }
  .print-summary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; margin: 22px 0 28px; }
  .print-summary-grid div { padding: 9px 0; border-bottom: 1px solid #c9d6dc; }
  .print-summary-grid span { display: block; color: #536b77; font-size: 9px; text-transform: uppercase; }
  .print-summary-grid strong { display: block; margin-top: 4px; font-size: 12px; }
  .print-sheet h2 { margin: 22px 0 8px; color: #075b8c; font-family: Arial, sans-serif; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
  .print-sheet p, .print-sheet li { font-size: 12px; line-height: 1.55; }
  .print-sheet ul { margin-top: 6px; padding-left: 20px; }
  .print-preparation { display: flex; align-items: baseline; gap: 16px; padding: 14px; background: #edf5f8; }
  .print-preparation strong { color: #075b8c; font-size: 16px; }
  .print-preparation span { font-size: 11px; }
  .print-sheet footer { margin-top: 42px; padding-top: 12px; border-top: 1px solid #c9d6dc; color: #536b77; font-size: 9px; }
}
