/* ============================================================
   BIONOMI — Landing page styles
   Tokens follow the product brief (green / cream, Airbnb-style light)
   ============================================================ */

/* ── Tokens ── */
:root {
  /* Palette (accent set is overridable by Tweaks) */
  --primary:        #243b35;
  --primary-dark:   #162a24;
  --primary-light:  #E7ECE9;
  /* Wordmark accent for "Skin" : readable on both the black nav and the
     light mock-up card, unlike --primary (too dark on black) or
     --primary-light (too pale on white). */
  --logo-accent:    #4C8577;

  /* Neutral UI tones (everything that is NOT an action button) */
  --ui-fg:   #2B2B2B;   /* icons, numbers, dots, bars fill */
  --ui-soft: #EFEDEA;   /* tinted soft backgrounds */

  --ink:        #222222;
  --muted-80:   #484848;
  --muted-48:   #717171;
  --canvas:     #FFFFFF;
  --canvas-warm:#F7F7F7;
  --line:       #E8E8E8;
  --dark:       #222222;
  --dark-card:  #2E2E2E;
  --dark-line:  rgba(255,255,255,0.10);
  --dark-muted: rgba(255,255,255,0.62);

  /* Type */
  --font-display: 'Brand', 'Bricolage Grotesque', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-ui:      'Helvetica Neue', Arial, sans-serif;

  /* Radius */
  --r-card:  16px;
  --r-badge: 8px;
  --r-pill:  50px;

  /* Shadow */
  --shadow-sm: 0 2px 16px rgba(0,0,0,0.05);
  --shadow-md: 0 12px 40px rgba(0,0,0,0.10);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.14);

  /* Layout */
  --maxw: 1180px;
  --pad:  clamp(20px, 5vw, 48px);
  --sec-pad: clamp(72px, 10vw, 128px);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2.5px solid var(--ui-fg); outline-offset: 3px; border-radius: 4px; }

/* ── Typography helpers ── */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
}
.eyebrow {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ui-fg);
  margin: 0 0 18px;
}
.lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--muted-48);
  max-width: 560px;
  line-height: 1.55;
}
.shimmer-text {
  background: linear-gradient(90deg, var(--muted-80, #484848), var(--primary, #243b35), var(--muted-80, #484848));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 5s ease-in-out infinite alternate;
}

@keyframes textShimmer {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* ── Layout ── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
section { padding-block: var(--sec-pad); position: relative; }
.sec-warm { background: var(--canvas-warm); }
.sec-dark { background: var(--dark); color: #fff; }
.sec-dark .eyebrow { color: rgba(255, 255, 255, 0.6); }
.sec-pink { background: var(--ui-soft); }

/* ============================================================
   MANIFESTE — Bionomie (révélation du texte au scroll, mot à mot)
   Effet « text reveal » : les mots passent de l'estompé au net
   au fil du défilement (texte sticky dans une piste haute).
   ============================================================ */
.bionomie { background: var(--canvas); }
.bionomie-track { position: relative; height: 180vh; }
.bionomie-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.bionomie-sticky .wrap { max-width: 1000px; text-align: center; margin: 0 auto; }
.bionomie-kicker { color: var(--muted-48); margin-bottom: 26px; }
.bionomie-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.6vw, 2.7rem);
  line-height: 1.34;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 auto;
  color: var(--ink);
}
.bionomie-text .w { opacity: .16; transition: opacity .12s linear; }
@media (prefers-reduced-motion: reduce) {
  .bionomie-track { height: auto; }
  .bionomie-sticky { position: static; height: auto; padding-block: clamp(64px, 9vw, 120px); }
  .bionomie-text .w { opacity: 1 !important; }
}

.sec-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-title { font-size: clamp(30px, 5vw, 48px); margin: 0; }
.sec-dark .sec-title, .sec-dark .eyebrow ~ * { color: #fff; }
.sec-dark .sec-title { color: #fff; }
.sec-sub { margin: 18px 0 0; }
.sec-head.center .lead { margin-inline: auto; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: #000000;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.nav.scrolled { border-bottom-color: rgba(255, 255, 255, 0.15); box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
@font-face { font-family: Brand; src: url('assets/fonts/brand.woff2') format('woff2'); font-display: swap; }
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.brand-mark { width: 26px; height: 26px; flex-shrink: 0; }
.brand .dot { color: #ffffff; }
.brand .logo-skin, .mock-brand .logo-skin { color: var(--logo-accent); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-ghost {
  font-family: var(--font-ui);
  font-size: 14px; font-weight: 600;
  color: #ffffff;
  padding: 10px 16px; border-radius: var(--r-pill);
  transition: background .2s ease, color .2s ease;
}
.nav-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.nav-icon-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
}
.nav-icon-only svg {
  width: 20px;
  height: 20px;
}
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
  margin: 0 4px;
}
.nav-badge:hover {
  opacity: 0.85;
}
.nav-badge img {
  height: 36px;
  width: auto;
  display: block;
}
.nav-toggle { display: none; }

/* ── Buttons ── */
.btn {
  font-family: var(--font-ui);
  font-weight: 600;
  border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: #fff;
  padding: 14px 26px; font-size: 16px;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--primary) 32%, transparent);
}
.btn-primary:hover { background: var(--primary-dark); transform: scale(1.03); }
.btn-primary.lg { padding: 17px 34px; font-size: 18px; }
.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn-ghost-dark {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,0.45);
  padding: 16px 32px; font-size: 17px;
}
.btn-ghost-dark:hover { background: rgba(255,255,255,0.08); border-color: #fff; transform: scale(1.03); }
.btn-text {
  font-family: var(--font-ui); font-weight: 600; font-size: 16px;
  color: var(--muted-48); display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s ease, gap .2s ease;
}
.btn-text:hover { color: var(--ink); gap: 10px; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   HERO (00)
   ============================================================ */
.hero { position: relative; padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(64px, 9vw, 112px); text-align: center; overflow: clip; }
.hero-wrap { position: relative; z-index: 2; }
/* ── Hero animated backdrop (native — skin tones, mouse parallax) ── */
.hero-bg { position: absolute; inset: -12% -6%; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-photo {
  position: absolute; inset: 0;
  background: url('images/hero-diversite.webp') center 22% / cover no-repeat;
  opacity: .45;
}
.blob {
  position: absolute; will-change: transform;
  transform: translate3d(calc(var(--mx, 0) * var(--px, 0px)), calc(var(--my, 0) * var(--py, 0px)), 0);
  transition: transform .7s cubic-bezier(.22,.61,.36,1);
}
.blob::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  filter: blur(58px); opacity: .9;
  animation: blobDrift var(--dur, 20s) ease-in-out infinite alternate;
}
.blob.b1 { width: 46vw; height: 46vw; left: -6vw;  top: -10vw;    --px: 26px;  --py: 18px;  --dur: 19s; }
.blob.b2 { width: 40vw; height: 40vw; right: -8vw; top: -4vw;     --px: -34px; --py: 14px;  --dur: 23s; }
.blob.b3 { width: 52vw; height: 52vw; right: 0;    bottom: -24vw; --px: -18px; --py: -26px; --dur: 27s; }
.blob.b4 { width: 34vw; height: 34vw; left: 6vw;   bottom: -18vw; --px: 22px;  --py: -18px; --dur: 21s; }
.blob.b1::before { background: radial-gradient(circle at 40% 40%, #FFD9C2, rgba(255,217,194,0) 70%); }
.blob.b2::before { background: radial-gradient(circle at 50% 50%, #F6C4BC, rgba(246,196,188,0) 70%); animation-delay: -5s; }
.blob.b3::before { background: radial-gradient(circle at 50% 50%, #F4E3D2, rgba(244,227,210,0) 70%); animation-delay: -9s; }
.blob.b4::before { background: radial-gradient(circle at 50% 50%, #FFC8A6, rgba(255,200,166,0) 68%); animation-delay: -3s; }
@keyframes blobDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(4%, 6%) scale(1.08); }
  100% { transform: translate(-5%, -3%) scale(0.95); }
}
.hero-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .55; mix-blend-mode: multiply;
  background-image: radial-gradient(rgba(120,90,70,0.06) 1px, transparent 1px);
  background-size: 4px 4px;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(66% 56% at 50% 36%, rgba(255,250,247,0.62) 0%, rgba(255,250,247,0.26) 50%, rgba(255,250,247,0) 78%),
    linear-gradient(180deg, rgba(255,253,251,0.38) 0%, rgba(255,253,251,0) 26%, rgba(255,253,251,0) 62%, rgba(255,253,251,0.97) 100%);
}
/* Spline animation layer — sits above the blobs, behind the scrim + content */
.hero-spline-container {
  /* Retiré du hero : le canvas 3D peint un fond opaque plein cadre (pas
     seulement la silhouette du téléphone), ce qui masquait systématiquement
     la photo de fond ajoutée derrière lui — et expliquait aussi le bug
     d'affichage où le titre se retrouvait chevauché par le mockup. */
  display: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: auto;
}
.hero-spline {
  width: 100%;
  height: 100%;
  display: block;
}
/* let the Spline scene receive the mouse through the decorative phone */
.hero-mock { pointer-events: none; }

/* ── Spline phone screen overlay ──────────────────────────────────────────
   Positionné sur l'écran du téléphone Spline via JS (spline-loader.js).
   Ajuste --ss-x / --ss-y / --ss-w si le JS échoue (valeurs % du hero).
   ──────────────────────────────────────────────────────────────────────── */
.spline-screen-overlay {
  /* fallback CSS si le JS de projection échoue */
  --ss-x: 50%;
  --ss-y: 44%;
  --ss-w: min(36vw, 340px);
  --ss-r: 36px;

  position: absolute;
  top: var(--ss-y);
  left: var(--ss-x);
  width: var(--ss-w);
  aspect-ratio: 9 / 19.5;
  transform: translate(-50%, -50%);
  border-radius: var(--ss-r);
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease 0.3s;
}
.spline-screen-overlay.is-ready { opacity: 1; }
.spline-screen-overlay img,
.spline-screen-overlay video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
@media (max-width: 768px) {
  .spline-screen-overlay { --ss-w: 52vw; --ss-r: 24px; }
}
@media (max-width: 480px) {
  .spline-screen-overlay { display: none; }
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: 13px; font-weight: 600;
  color: var(--ui-fg);
  border: 1.5px solid color-mix(in srgb, var(--ui-fg) 35%, transparent);
  background: rgba(255,255,255,0.6);
  padding: 8px 16px; border-radius: var(--r-pill);
  margin-bottom: 28px;
}
.chip .star { color: var(--ui-fg); font-size: 12px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(38px, 7vw, 72px);
  letter-spacing: -0.03em; line-height: 1.08;
  margin: 0 auto 24px; max-width: 16ch;
  color: var(--ink);
  text-wrap: balance;
}
.hero .lead { margin: 0 auto; }
.hero-cta { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 34px; }
.social-proof {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 26px; font-size: 14px; color: var(--muted-48); font-family: var(--font-ui);
}
.stars { color: var(--ui-fg); letter-spacing: 2px; }

/* Phone mockup */
.hero-mock { margin-top: clamp(48px, 7vw, 76px); display: flex; justify-content: center; position: relative; perspective: 1100px; }
.phone {
  width: 320px; max-width: 86vw;
  background: #fff; border-radius: 42px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.04);
  position: relative;
  transition: transform .5s cubic-bezier(.22,.61,.36,1);
  will-change: transform; transform-style: preserve-3d;
}
/* Group hand + phone so they tilt together on mouse parallax */
.hero-hold { position: relative; display: inline-block; transform-style: preserve-3d; will-change: transform; transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.hand-slot { position: absolute; left: 50%; bottom: -58px; transform: translateX(-50%); width: 460px; max-width: 132%; height: 62%; z-index: 5; }
.hand-slot::part(frame) { background: transparent; }
.phone::before {
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 6px; border-radius: 3px; background: #ECECEC; z-index: 2;
}
.phone-screen {
  background: linear-gradient(180deg, #fff 0%, var(--canvas-warm) 100%);
  border-radius: 32px; padding: 40px 24px 28px; overflow: hidden;
}
.mock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.mock-brand { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ui-fg); letter-spacing: -0.02em; }
.mock-date { font-family: var(--font-ui); font-size: 11px; color: var(--muted-48); }
.ring-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 6px 0 22px; }
.ring { position: relative; width: 168px; height: 168px; }
.ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.ring-track { fill: none; stroke: var(--ui-soft); stroke-width: 12; }
.ring-fill {
  fill: none; stroke: var(--ui-fg); stroke-width: 12; stroke-linecap: round;
  transition: stroke-dashoffset 1.1s cubic-bezier(.22,.61,.36,1);
}
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-score { font-family: var(--font-display); font-weight: 700; font-size: 48px; color: var(--ink); line-height: 1; letter-spacing: -0.03em; }
.ring-score small { font-size: 18px; color: var(--muted-48); font-weight: 600; }
.ring-label { font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-48); margin-top: 2px; }
.idx-list { display: grid; gap: 10px; }
.idx { display: flex; align-items: center; gap: 12px; }
.idx-check {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ui-fg); color: #fff;
  display: grid; place-items: center;
}
.idx-check svg { width: 13px; height: 13px; }
.idx-name { font-size: 13px; font-weight: 600; color: var(--ink); font-family: var(--font-ui); flex: 1; }
.idx-bar { width: 56px; height: 6px; border-radius: 3px; background: var(--ui-soft); overflow: hidden; }
.idx-bar i { display: block; height: 100%; background: var(--ui-fg); border-radius: 3px; }

/* ── Animated phone sequence (visage → analyse → produits → score) ── */
.ps-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ps-step { font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--muted-48); }
.ps-stage { position: relative; height: 396px; }
.ps-scene {
  position: absolute; inset: 0; opacity: 0; transform: translateY(10px) scale(.985);
  transition: opacity .55s ease, transform .55s cubic-bezier(.22,.61,.36,1);
  pointer-events: none; display: flex; flex-direction: column;
}
.ps-scene.is-active { opacity: 1; transform: none; }
.ps-cap { margin-top: auto; display: flex; align-items: center; gap: 8px; font-family: var(--font-ui); font-size: 12px; font-weight: 600; color: var(--muted-48); padding-top: 14px; }
.ps-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex: none; animation: psPulse 1.6s ease-out infinite; }
@keyframes psPulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 55%, transparent); }
  70%  { box-shadow: 0 0 0 9px color-mix(in srgb, var(--primary) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* Couleurs de l'app pro (turquoise), pour que les écrans ressemblent au bilan réel */
.phone-screen { --app: #2F8F95; --app-soft: #A8DADC; --app-bg: #EAF6F6; --app-warn: #EF8A1F; --app-bad: #E4575A; }
.ps-stage { text-align: left; }
.ps-kicker { font-family: var(--font-ui); font-size: 11px; font-weight: 700; color: var(--app); margin: 0 0 10px; letter-spacing: .01em; }

/* Scène 1 — analyse visuelle : zoom lent sur le visage, 5 zones pointées */
.ps-photo { position: relative; flex: 1; border-radius: 18px; overflow: hidden; background: #F0ECE7; }
.ps-face-layer { position: absolute; inset: 0; transform-origin: 50% 45%; transform: scale(1.12); }
.ps-face-img { position: absolute; inset: 0; background-size: cover; background-position: center 30%; }
.ps-scene.is-active .ps-face-layer { animation: psZoom 3.4s cubic-bezier(.33,0,.2,1) forwards; }
@keyframes psZoom { from { transform: scale(1); } }
.ps-scanline { position: absolute; left: 0; right: 0; top: 4%; height: 2px; background: linear-gradient(90deg, transparent, var(--app-soft), transparent); box-shadow: 0 0 16px 4px rgba(168,218,220,.7); opacity: .95; z-index: 2; }
.ps-scene.is-active .ps-scanline { animation: psScan 2.6s cubic-bezier(.45,0,.55,1) infinite; }
@keyframes psScan { 0% { top: 4%; } 50% { top: 94%; } 100% { top: 4%; } }
.ps-zone { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border: 1.5px dashed #E4575A; border-radius: 50%; background: rgba(228,87,90,.08); z-index: 2; }
.ps-scene.is-active .ps-zone { animation: psZone .5s cubic-bezier(.22,.61,.36,1) var(--d, 0s) both; }
@keyframes psZone { from { opacity: 0; transform: scale(.4); } }
.ps-tag { position: absolute; transform: translate(18px, -50%); background: rgba(255,255,255,.95); color: var(--ink); font-family: var(--font-ui); font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 6px; white-space: nowrap; z-index: 3; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.ps-tag-below { transform: translate(-50%, 19px); }
.ps-scene.is-active .ps-tag { animation: psTagIn .45s ease var(--d, 0s) both; }
@keyframes psTagIn { from { opacity: 0; } }

/* Scène 2 — mesures instrumentales */
.ps-measure-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ps-select { font-family: var(--font-ui); font-size: 12px; font-weight: 700; color: #1F7A4D; border: 1px solid var(--line); border-radius: 9px; padding: 5px 10px; background: #fff; }
.ps-select span { color: var(--muted-48); margin-left: 4px; }
.ps-big { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: #1F7A4D; letter-spacing: -.02em; }
.ps-zones { display: grid; gap: 4px; margin-bottom: 4px; }
.ps-zones li { display: flex; align-items: center; gap: 8px; font-family: var(--font-ui); font-size: 11.5px; font-weight: 600; color: var(--muted-80); }
.ps-zones b { margin-left: auto; color: var(--ink); font-weight: 700; }
.ps-dot { width: 7px; height: 7px; border-radius: 50%; background: #2E7D4F; flex: none; }
.ps-radar { width: 210px; height: auto; margin: 0 auto; display: block; overflow: visible; }
.ps-radar-grid { fill: none; stroke: #DADADA; stroke-width: .8; }
.ps-radar-val { fill: rgba(46,125,79,.14); stroke: #2E7D4F; stroke-width: 1.6; stroke-linejoin: round; transform-box: view-box; transform-origin: 0 0; transform: scale(0); transition: transform .9s cubic-bezier(.22,.61,.36,1) .25s; }
.ps-scene.is-active .ps-radar-val { transform: scale(1); }
/* Hors scène : remise à zéro seulement après le fondu de sortie (0,55 s) */
.ps-scene:not(.is-active) .ps-radar-val, .ps-scene:not(.is-active) .ps-donut-seg { transition-duration: 0s; transition-delay: .6s; }
.ps-radar text { font-family: var(--font-ui); font-size: 8px; font-weight: 600; fill: var(--muted-48); }

/* Scène 3 — analyse des produits actuels */
.ps-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.ps-kpi { border: 1px solid var(--line); border-radius: 10px; padding: 7px 4px 6px; text-align: center; background: #fff; }
.ps-kpi b { display: block; font-family: var(--font-display); font-size: 18px; color: var(--muted-48); line-height: 1.1; }
.ps-kpi span { display: block; line-height: 1.25; font-family: var(--font-ui); font-size: 7.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted-48); }
.ps-kpi.k-warn { background: #FFF6EC; border-color: #F8DDBC; }
.ps-kpi.k-warn b { color: var(--app-warn); }
.ps-kpi.k-bad { background: #FFF1F1; border-color: #F6D0D0; }
.ps-kpi.k-bad b { color: var(--app-bad); }
.ps-donut-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.ps-donut { width: 84px; height: 84px; flex: none; }
.ps-donut-track, .ps-donut-seg { fill: none; stroke-width: 9; }
.ps-donut-track { stroke: var(--ui-soft); }
/* Circonférence 2·π·32 ≈ 201 : autorisés 68/82 ≈ 167, controversés 14/82 ≈ 34 */
.ps-donut-seg { transform: rotate(-90deg); transform-origin: 40px 40px; stroke-dasharray: 0 201; transition: stroke-dasharray 1s cubic-bezier(.22,.61,.36,1) .2s; }
.ps-donut-seg.s-ok { stroke: #8A8A8A; }
.ps-donut-seg.s-warn { stroke: var(--app-warn); stroke-dashoffset: -167; }
.ps-scene.is-active .ps-donut-seg.s-ok { stroke-dasharray: 167 201; }
.ps-scene.is-active .ps-donut-seg.s-warn { stroke-dasharray: 34 201; }
.ps-donut-n { font-family: var(--font-display); font-size: 17px; font-weight: 700; fill: var(--ink); }
.ps-donut-l { font-family: var(--font-ui); font-size: 6.5px; fill: var(--muted-48); }
.ps-legend { display: grid; gap: 5px; }
.ps-legend li { display: flex; align-items: center; gap: 7px; font-family: var(--font-ui); font-size: 11px; color: var(--muted-80); }
.ps-legend b { color: var(--ink); margin-left: 2px; }
.ps-legend i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.l-ok { background: #8A8A8A; } .l-warn { background: var(--app-warn); } .l-bad { background: var(--app-bad); }
.ps-prods { display: grid; gap: 8px; }
.ps-prod { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 7px 9px; box-shadow: 0 2px 10px rgba(0,0,0,.03); }
.ps-scene.is-active .ps-prod { animation: psSlide .55s cubic-bezier(.22,.61,.36,1) both; }
.ps-scene.is-active .ps-prod:nth-child(1) { animation-delay: .5s; }
.ps-scene.is-active .ps-prod:nth-child(2) { animation-delay: .75s; }
@keyframes psSlide { from { opacity: 0; transform: translateX(14px); } }
.ps-thumb { width: 32px; height: 32px; border-radius: 8px; flex: none; background-size: cover; background-position: center; background-color: var(--ui-soft); }
.ps-thumb.t2 { background: linear-gradient(135deg, #DDEFF0, #A8DADC); }
.ps-prod-name { flex: 1; font-family: var(--font-ui); font-size: 12px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.ps-prod-name small { display: block; font-size: 8.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-48); }
.ps-verdict { font-family: var(--font-ui); font-size: 9.5px; font-weight: 700; padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.ps-verdict.ok { background: #E3EEFB; color: #1565C0; }
.ps-verdict.warn { background: #FDEEDC; color: #C25E00; }

/* Scène 4 — bilan et rapport */
.ps-bilan { display: flex; gap: 12px; align-items: center; background: var(--app-bg); border-radius: 14px; padding: 10px; margin-bottom: 12px; }
.ps-bilan-face { width: 64px; height: 80px; border-radius: 10px; flex: none; background-size: cover; background-position: center 30%; }
.ps-bilan-label { display: block; font-family: var(--font-ui); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-48); }
.ps-bilan-type { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--ink); margin: 1px 0 6px; letter-spacing: -.01em; }
.ps-proto-title { margin: 0 0 8px; }
.ps-proto { display: grid; gap: 9px; }
.ps-proto li { display: flex; align-items: center; gap: 10px; font-family: var(--font-ui); font-size: 12px; font-weight: 600; color: var(--ink); }
.ps-proto .idx-check { background: var(--app); width: 20px; height: 20px; }
.ps-scene.is-active .ps-proto li { animation: psRise .45s ease both; }
@keyframes psRise { from { opacity: 0; transform: translateY(6px); } }
.ps-scene.is-active .ps-proto li:nth-child(1) { animation-delay: .3s; }
.ps-scene.is-active .ps-proto li:nth-child(2) { animation-delay: .55s; }
.ps-scene.is-active .ps-proto li:nth-child(3) { animation-delay: .8s; }
.ps-pdf { display: block; margin-top: 16px; text-align: center; font-family: var(--font-ui); font-size: 12px; font-weight: 700; color: #0F4F53; background: var(--app-soft); border-radius: 10px; padding: 10px; }
.ps-scene.is-active .ps-pdf { animation: psPress 3.6s ease forwards; }
@keyframes psPress { 0%, 60% { transform: none; } 66% { transform: scale(.96); } 74%, 100% { transform: none; box-shadow: 0 0 0 4px rgba(168,218,220,.45); } }

@media (prefers-reduced-motion: reduce) {
  .blob::before, .ps-scanline, .ps-pulse, .ps-face-layer, .ps-pdf { animation: none !important; }
  .ps-zone, .ps-tag, .ps-prod, .ps-proto li { animation: none !important; }
  .ps-scene { transition: opacity .3s ease; }
}

/* ============================================================
   01 — PROBLÈME (2x2 cards)
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: #fff; border-radius: var(--r-card); padding: 32px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  cursor: pointer; position: relative; outline: none;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.card:focus-visible { box-shadow: var(--shadow-md), 0 0 0 3px var(--primary-light); border-color: var(--primary); }
.card-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px;
  font-family: var(--font-ui); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--primary);
  opacity: 0; transform: translateY(4px); transition: opacity .25s ease, transform .25s ease;
}
.card-more svg { width: 14px; height: 14px; }
.card:hover .card-more, .card:focus-visible .card-more { opacity: 1; transform: none; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--ui-soft); color: var(--ui-fg);
  display: grid; place-items: center; margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin: 0 0 8px; letter-spacing: -0.02em; color: var(--ink); }
.card p { margin: 0; font-size: 15px; color: var(--muted-48); }

/* Carte avec image en fond (ex. « Diagnostics de marque ») */
.card--media {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 300px; color: #fff;
}
.card-media {
  position: absolute; inset: 0; margin: 0; z-index: 0; overflow: hidden;
  background: var(--ui-soft);
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 26%;
  display: block; transition: transform .5s ease;
}
.card-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,22,22,0.10) 0%, rgba(26,22,22,0.40) 46%, rgba(26,22,22,0.88) 100%);
}
.card--media:hover .card-media img,
.card--media:focus-visible .card-media img { transform: scale(1.05); }
.card--media .card-icon,
.card--media h3,
.card--media p,
.card--media .card-more { position: relative; z-index: 1; }
.card--media .card-icon { background: rgba(255,255,255,0.18); color: #fff; backdrop-filter: blur(6px); margin-bottom: 16px; }
.card--media h3 { color: #fff; }
.card--media p { color: rgba(255,255,255,0.82); }
.card--media:hover { border-color: var(--line); }

/* ============================================================
   02 — DIFFÉRENCE (dark, 3 col)
   ============================================================ */
.sec-difference {
  position: relative;
  overflow: hidden;
  background: #18181b;
}
.sec-diff-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}
.sec-difference::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.8); /* Readability overlay */
  z-index: 1;
}
.sec-difference .wrap {
  position: relative;
  z-index: 2;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-dark {
  background: var(--dark-card); border: 1px solid var(--dark-line);
  border-radius: 12px; padding: 30px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.card-dark:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.22); background: #343434; }
.card-dark .card-icon { background: rgba(255,255,255,0.10); color: #fff; }
.card-dark h3 { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 20px; margin: 0 0 8px; letter-spacing: -0.02em; }
.card-dark p { color: #fff; font-size: 14px; margin: 0; }

/* ── Indices : grille fixe ; clic sur une carte → popup (module entier) ── */
.indices .card-dark { cursor: pointer; }
.indices .card-dark.is-open { border-color: rgba(255,255,255,0.45); }
body.imodal-open { overflow: hidden; }

/* Backdrop + modale centrée */
.imodal-backdrop {
  position: fixed; inset: 0; z-index: 1000; padding: 24px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8,8,8,0.66); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
}
.imodal-backdrop.show { opacity: 1; visibility: visible; }
.imodal {
  position: relative; width: 100%; max-width: 540px; max-height: 88vh; overflow-y: auto;
  text-align: left; background: rgba(22,22,22,0.97); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.16); border-radius: 24px;
  padding: 40px 40px 34px; box-shadow: 0 40px 110px rgba(0,0,0,0.72);
  opacity: 0; transform: translateY(18px) scale(.97);
  transition: opacity .35s ease, transform .42s cubic-bezier(.22,.8,.36,1);
}
.imodal-backdrop.show .imodal { opacity: 1; transform: none; }
.imodal-icon { width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,0.10); color: #fff; display: grid; place-items: center; margin-bottom: 20px; }
.imodal-icon svg { width: 26px; height: 26px; }
.imodal-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 4vw, 32px); color: #fff; letter-spacing: -0.02em; margin: 14px 0 14px; line-height: 1.1; }
.imodal-intro { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,0.82); margin: 0 0 24px; }
.imodal-points { display: grid; gap: 15px; }
.imodal-point { display: flex; gap: 13px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,0.88); }
.imodal-point .d { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); margin-top: 8px; }
.imodal-close {
  position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.10); color: #fff; border: none; cursor: pointer;
  display: grid; place-items: center; transition: background .2s ease, transform .2s ease;
}
.imodal-close svg { width: 18px; height: 18px; }
.imodal-close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }
.imodal .op-links { margin-top: 26px; }

/* Styles internes réutilisés (badge, connexions) */
.op-cat {
  display: inline-block; font-family: var(--font-ui); font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #111; background: #fff;
  padding: 4px 11px; border-radius: 50px;
}
.op-links { margin-top: 14px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.12); }
.op-links-h { display: flex; align-items: center; gap: 6px; font-family: var(--font-ui); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin: 0 0 11px; }
.op-links-h svg { width: 11px; height: 11px; }
.op-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.op-chip {
  display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-ui); font-size: 12px;
  color: rgba(255,255,255,0.82); background: transparent; border: 1px solid rgba(255,255,255,0.22);
  padding: 6px 12px; border-radius: 8px; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.op-chip:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.4); }
.op-chip svg { width: 10px; height: 10px; opacity: .7; }

@media (max-width: 560px) { .imodal { padding: 30px 24px 26px; } }
@media (prefers-reduced-motion: reduce) {
  .imodal-backdrop, .imodal { transition: opacity .2s ease, visibility .2s; }
  .imodal { transform: none; }
}

/* ============================================================
   03 — PROCESS (timeline)
   ============================================================ */
.timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 23px; left: 7%; right: 7%; height: 2px;
  background: linear-gradient(90deg, var(--ui-soft), var(--ui-fg), var(--ui-soft));
  z-index: 0;
}
.step { position: relative; z-index: 1; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ui-fg); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  display: grid; place-items: center; margin-bottom: 18px;
  box-shadow: 0 0 0 6px var(--canvas);
}
.step h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin: 0 0 6px; letter-spacing: -0.02em; color: var(--ink); }
.step p { margin: 0; font-size: 14px; color: var(--muted-48); }

/* — Step 6 bonus (slide-in + glow) — */
.step-bonus {
  opacity: 0;
  transform: translateX(40px) scale(0.95);
}
.step-bonus.is-revealed {
  animation: stepBonusIn 0.8s cubic-bezier(.22,.61,.36,1) forwards;
}
.step-num--bonus {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  font-size: 22px;
  box-shadow: 0 0 0 6px var(--canvas), 0 0 24px color-mix(in srgb, var(--primary) 40%, transparent);
  animation: bonusGlow 2s ease-in-out infinite alternate;
}
.step-bonus h3 {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@keyframes stepBonusIn {
  0%   { opacity: 0; transform: translateX(40px) scale(0.95); }
  60%  { opacity: 1; transform: translateX(-4px) scale(1.02); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes bonusGlow {
  0%   { box-shadow: 0 0 0 6px var(--canvas), 0 0 20px color-mix(in srgb, var(--primary) 30%, transparent); }
  100% { box-shadow: 0 0 0 6px var(--canvas), 0 0 32px color-mix(in srgb, var(--primary-dark) 50%, transparent); }
}

.btn-bonus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 50px;
  transition: all 0.2s ease;
  width: fit-content;
  text-decoration: none;
}

.btn-bonus:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.04);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 30%, transparent);
}

/* ============================================================
   04 — RAPPORT (3x2 numbered cards)
   ============================================================ */
.grid-3.report { gap: 20px; }
.r-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 30px 30px 32px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.r-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.r-num {
  position: absolute; top: -10px; right: 14px;
  font-family: var(--font-display); font-weight: 800; font-size: 88px;
  color: var(--ui-soft); line-height: 1; z-index: 0; letter-spacing: -0.04em;
}
.r-card h3, .r-card p { position: relative; z-index: 1; }
.r-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; margin: 0 0 8px; letter-spacing: -0.02em; color: var(--ink); }
.r-card p { margin: 0; font-size: 15px; color: var(--muted-48); }
.legal { margin-top: 28px; font-style: italic; font-size: 13px; color: var(--muted-48); text-align: center; }

/* ============================================================
   05 — TIME MACHINE (Sticky Cards Scroll Showcase)
   ============================================================ */
.sec-tm-sticky {
  background: #09090b;
  color: #f4f4f5;
  padding-block: var(--sec-pad);
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.sec-tm-sticky .sec-title {
  color: #fff;
}
.sec-tm-sticky .eyebrow {
  color: rgba(255, 255, 255, 0.6);
}

.tm-sticky-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 8vw, 96px);
  align-items: start;
}

.tm-sticky-text {
  position: sticky;
  top: 120px;
}

.tm-sticky-cards {
  display: flex;
  flex-direction: column;
  gap: 48px;
  perspective: 1000px;
  padding-bottom: 120px;
}

.tm-sticky-card {
  position: sticky;
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  display: flex;
  gap: 24px;
  transition: all 0.3s ease;
}

.tm-sticky-card:hover {
  border-color: rgba(255,255,255,0.1) !important;
}

@media (max-width: 868px) {
  .tm-sticky-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .tm-sticky-text {
    position: static;
  }
  .tm-sticky-cards {
    padding-bottom: 0;
  }
  .tm-sticky-card {
    position: static;
    flex-direction: column;
    gap: 20px;
  }
}

/* ============================================================
   06 — RÉSEAU PRO
   ============================================================ */
.pro-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.checklist { display: grid; gap: 16px; margin-top: 28px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; color: var(--muted-80); }
.check {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ui-soft); color: var(--ui-fg);
  display: grid; place-items: center; margin-top: 1px;
}
.check svg { width: 15px; height: 15px; }
.pro-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.pro-directory { min-width: 0; }
.pro-directory [hidden] { display: none !important; }
.pro-directory-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.pro-directory-actions #proLocate { margin-top: 18px; }
.pro-directory-actions #proRetry { color: var(--muted-48); }
.pro-directory-actions #proMore { color: var(--muted-48); }
.pro-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pro-page-bubble { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--muted-48); font: 600 12px var(--font-ui); cursor: pointer; transition: background .2s, color .2s; }
.pro-page-bubble:hover { background: var(--ui-soft); }
.pro-page-bubble[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pro-page-bubble:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.pro-text-button { appearance: none; border: 0; background: none; color: var(--primary); cursor: pointer; font: 600 12px var(--font-ui); padding: 8px 0; }
.pro-text-button:hover { text-decoration: underline; }
.pro-filters { margin-top: 12px; border-top: 1px solid var(--line); font-family: var(--font-ui); }
.pro-filters summary { cursor: pointer; padding: 14px 0 0; font-size: 12px; color: var(--muted-48); }
.pro-filters summary span { float: right; }
.pro-filters-body { padding: 12px 0 0; }
.pro-card > div { min-width: 0; }
.pro-card image-slot { overflow: hidden; border-radius: 50%; }
.pro-card .tag-bionome svg { width: 12px; height: 12px; }
.pro-directory .pro-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.pro-directory button:focus-visible, .pro-filters summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.pro-search { margin: 18px 0 12px; }
.pro-search label { display: block; font-size: 13px; margin-bottom: 6px; }
.pro-search-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pro-search input { flex: 1; min-width: 130px; width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font: inherit; background: white; color: #222; }
.pro-radius { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.pro-radius select { border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: white; color: #222; }
.pro-help { font-size: 12px; color: var(--muted-48); margin: 10px 0; line-height: 1.5; }
#proStatus { font-size: 12px; color: var(--muted-48); margin: 12px 0; line-height: 1.5; }
#proStatus:empty { display: none; }
.pro-cities { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pro-avatar { width: 84px; height: 84px; border-radius: 50%; background: var(--canvas-warm); display: flex; align-items: center; justify-content: center; flex: none; margin: 0 auto 14px; position: relative; overflow: hidden; font-size: 28px; }
.pro-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pro-card:first-child .pro-avatar { margin: 0; }
.pro-card .pro-distance { margin-top: 8px; }
#proMore, #proReset { margin: 8px 0 0; }
.pro-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 22px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  cursor: pointer; position: relative; outline: none;
}
.pro-card:first-child { grid-column: span 2; display: flex; align-items: center; text-align: left; gap: 18px; }
.pro-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.pro-card:focus-visible { box-shadow: var(--shadow-md), 0 0 0 3px var(--primary-light); border-color: var(--primary); }
.pro-more {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 12px;
  font-family: var(--font-ui); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--primary);
  opacity: 0; transform: translateY(3px); transition: opacity .22s ease, transform .22s ease;
}
.pro-more svg { width: 13px; height: 13px; }
.pro-card:hover .pro-more, .pro-card:focus-visible .pro-more { opacity: 1; transform: none; }
.pro-card:first-child .pro-more { position: absolute; bottom: 16px; right: 18px; margin-top: 0; }
.pro-card image-slot { width: 84px; height: 84px; margin: 0 auto 14px; --slot-bg: var(--canvas-warm); }
.pro-card:first-child image-slot { margin: 0; flex: none; }
.pro-card h4 { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 0 0 3px; letter-spacing: -0.02em; }
.pro-card .spec { font-size: 13px; color: var(--muted-48); font-family: var(--font-ui); margin: 0; }
.pro-card .tag { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--ui-fg); background: var(--ui-soft); padding: 4px 10px; border-radius: var(--r-pill); font-family: var(--font-ui); }

/* ============================================================
   07 — PRICING
   ============================================================ */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 860px; margin: 28px auto 0; }
.price-card {
  border-radius: 22px; padding: 26px 28px;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.price-card.light { background: #fff; border: 2px solid var(--ui-fg); box-shadow: var(--shadow-md); }
.price-card.dark { background: var(--dark); color: #fff; }
.price-card:hover { transform: translateY(-4px); }
.price-kicker { font-family: var(--font-ui); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-48); margin: 0; }
.price-card.dark .price-kicker { color: var(--dark-muted); }
.price-amt { font-family: var(--font-display); font-weight: 700; font-size: 44px; letter-spacing: -0.03em; margin: 4px 0 2px; color: var(--ink); }
.price-card.dark .price-amt { color: #fff; }
.price-note { font-size: 13.5px; color: var(--muted-48); margin: 0 0 16px; }
.price-card.dark .price-note { color: var(--dark-muted); }
.price-list { display: grid; gap: 7px; margin: 4px 0 18px; }
.price-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; color: var(--muted-80); }
.price-card.dark .price-list li { color: #e4e4e7; }
.price-card.dark .price-list .check { background: rgba(255, 255, 255, 0.15); color: #fff; }
.price-list .check { width: 18px; height: 18px; }
.price-list .check svg { width: 11px; height: 11px; }
.price-card .btn { margin-top: auto; }

/* ============================================================
   08 — FAQ
   ============================================================ */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 4px; font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 2.4vw, 22px);
  letter-spacing: -0.02em; color: var(--ink);
}
.faq-icon { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ui-soft); color: var(--ui-fg); display: grid; place-items: center; transition: transform .3s ease, background .2s ease; }
.faq-icon svg { width: 16px; height: 16px; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--ui-fg); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 4px 26px; font-size: 16px; color: var(--muted-48); max-width: 660px; }

/* ============================================================
   06b — CLARTÉ DES RÔLES (Interactive Tab Switcher)
   ============================================================ */
.sec-role-showcase {
  background: #000000; /* Pure black bg */
  color: #f4f4f5;
  padding-block: var(--sec-pad);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.role-showcase-bg-img {
  display: none;
}


.magnetic-text-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: none; /* hide default cursor when hovering */
  user-select: none;
  margin-top: 8px;
  margin-bottom: 16px;
  width: 100%;
}

.magnetic-text-base {
  display: inline-block;
  text-align: center;
  width: 100%;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(18px, 3.5vw, 36px);
  color: rgba(255, 255, 255, 0.4); /* slightly muted base text so reveal stands out */
  line-height: 1.2;
  white-space: nowrap;
}

.magnetic-text-lens {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 50%;
  background: #ffffff; /* foreground circle */
  overflow: hidden;
  width: 0;
  height: 0;
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, width, height;
}

.magnetic-text-container.hovered .magnetic-text-lens {
  width: 160px;
  height: 160px;
}

.magnetic-text-inner {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 50%;
  left: 50%;
  will-change: transform;
}

.magnetic-text-hover {
  display: inline-block;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(18px, 3.5vw, 36px);
  color: #09090b; /* dark text cut-out against the white lens background */
  line-height: 1.2;
  white-space: nowrap;
}

.role-matrix-bg-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}

.role-matrix-bg-glow .glow-aesthetician {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.3) 0%, transparent 70%);
  filter: blur(80px);
  border-radius: 50%;
}

.role-matrix-bg-glow .glow-dermatologist {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
  filter: blur(80px);
  border-radius: 50%;
}

.role-matrix-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(24, 24, 27, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  margin-top: 48px;
}

.role-matrix-header {
  display: grid;
  grid-template-columns: 1fr;
  border-b: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(24, 24, 27, 0.4);
  padding: 24px 32px;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .role-matrix-header {
    grid-template-columns: 5fr 1fr 5fr;
    text-align: left;
  }
}

.role-matrix-header-col {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 600;
  font-family: var(--font-display);
}

.role-matrix-header-col svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.role-matrix-header-col.col-aesthetician {
  color: var(--primary);
}

@media (min-width: 768px) {
  .role-matrix-header-col.col-aesthetician {
    justify-content: flex-end;
  }
}

.role-matrix-header-col.col-dermatologist {
  color: #60a5fa; /* blue-400 */
}

@media (min-width: 768px) {
  .role-matrix-header-col.col-dermatologist {
    justify-content: flex-start;
  }
}

.role-matrix-header-vs {
  display: none;
  color: #52525b; /* zinc-600 */
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-align: center;
}

@media (min-width: 768px) {
  .role-matrix-header-vs {
    display: block;
  }
}

.role-matrix-rows {
  display: flex;
  flex-direction: column;
}

.role-matrix-row {
  display: grid;
  grid-template-columns: 1fr;
  padding: 24px 32px;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background-color 0.2s ease;
}

.role-matrix-row:last-child {
  border-bottom: none;
}

.role-matrix-row:hover {
  background-color: rgba(255, 255, 255, 0.01);
}

@media (min-width: 768px) {
  .role-matrix-row {
    grid-template-columns: 5fr 1fr 5fr;
    gap: 0;
  }
}

.role-matrix-col {
  font-size: 14px;
  line-height: 1.6;
  color: #d4d4d8; /* zinc-300 */
}

.role-matrix-col strong {
  color: #ffffff;
  font-weight: 600;
}

.role-matrix-col.col-aesthetician {
  text-align: center;
}

@media (min-width: 768px) {
  .role-matrix-col.col-aesthetician {
    text-align: right;
    padding-right: 24px;
  }
}

.role-matrix-col.col-dermatologist {
  text-align: center;
}

@media (min-width: 768px) {
  .role-matrix-col.col-dermatologist {
    text-align: left;
    padding-left: 24px;
  }
}

.role-matrix-category {
  display: flex;
  justify-content: center;
  order: -1; /* Display badge above text on mobile */
}

@media (min-width: 768px) {
  .role-matrix-category {
    order: 0;
  }
}

.category-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #18181b; /* zinc-900 */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #71717a; /* zinc-500 */
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.category-badge:hover {
  background: #27272a;
  border-color: rgba(36, 59, 53, 0.4); /* soft green border */
  color: var(--primary);
  transform: scale(1.05);
}

.category-badge:active {
  transform: scale(0.95);
}

/* Score Badges */
.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-display);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#score-aesthetician {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 12px rgba(36, 59, 53, 0.4);
}

#score-dermatologist {
  background: #60a5fa; /* blue-400 */
  color: #09090b; /* zinc-950 contrast */
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.4);
}

/* Pop/Pulse animation when score increases */
#score-aesthetician.pulse {
  animation: scorePopAesthetician 0.4s ease-out;
}

#score-dermatologist.pulse {
  animation: scorePopDermatologist 0.4s ease-out;
}

@keyframes scorePopAesthetician {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); box-shadow: 0 0 24px rgba(36, 59, 53, 0.8); }
  100% { transform: scale(1); }
}

@keyframes scorePopDermatologist {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); box-shadow: 0 0 24px rgba(96, 165, 250, 0.8); }
  100% { transform: scale(1); }
}

.sec-role-showcase .sec-head.center {
  margin-inline: auto;
  text-align: center;
}

.sec-role-showcase .sec-head.center .lead {
  margin-inline: auto;
  color: #a1a1aa;
}

.sec-role-showcase .eyebrow {
  color: var(--primary);
}

@media (max-width: 980px) {
  .role-matrix-container {
    margin-top: 32px;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--canvas-warm); border-top: 1px solid var(--line); padding-block: 56px; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer .brand { margin-bottom: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { font-family: var(--font-ui); font-size: 14px; color: var(--muted-48); transition: color .2s ease; }
.footer-links a:hover { color: var(--ink); }
.footer-right { text-align: right; }
.footer-sig { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 14px; }
.footer-social { display: flex; gap: 10px; justify-content: flex-end; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--muted-80); transition: color .2s ease, border-color .2s ease, transform .2s ease; }
.footer-social a:hover { color: var(--ui-fg); border-color: var(--ui-fg); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }

/* ============================================================
   REVEAL ANIMATION  (content visible by default; JS animates entries
   via Web Animations API so captures/no-JS always show content)
   ============================================================ */
.reveal { }

/* ============================================================
   TWEAKS PANEL
   ============================================================ */
#tweaks { position: fixed; right: 20px; bottom: 20px; z-index: 1000; width: 280px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 18px; display: none; font-family: var(--font-ui); }
#tweaks.show { display: block; }
#tweaks .tw-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
#tweaks .tw-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
#tweaks .tw-close { color: var(--muted-48); font-size: 20px; line-height: 1; padding: 4px; }
#tweaks .tw-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-48); margin: 0 0 10px; }
.tw-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 4px; }
.tw-sw { aspect-ratio: 1; border-radius: 12px; border: 2px solid transparent; cursor: pointer; position: relative; transition: transform .15s ease; }
.tw-sw:hover { transform: scale(1.06); }
.tw-sw[aria-pressed="true"] { border-color: var(--ink); }
.tw-sw[aria-pressed="true"]::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 700; }
.tw-name { font-size: 12px; color: var(--muted-48); margin-top: 10px; text-align: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .grid-3, .grid-3.report { grid-template-columns: repeat(2, 1fr); }
  .tm-layout { grid-template-columns: 1fr; gap: 48px; }
  .tm-stage { order: 2; }
  .pro-layout { grid-template-columns: 1fr; gap: 40px; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { left: 23px; right: auto; top: 24px; bottom: 24px; width: 2px; height: auto; background: linear-gradient(180deg, var(--ui-soft), var(--ui-fg), var(--ui-soft)); }
  .step { display: grid; grid-template-columns: 48px 1fr; gap: 0 18px; padding-bottom: 28px; }
  .step:last-child { padding-bottom: 0; }
  .step-num { grid-column: 1; grid-row: 1 / span 2; margin-bottom: 0; }
  .step h3 { grid-column: 2; grid-row: 1; margin: 0 0 6px; }
  .step p { grid-column: 2; grid-row: 2; margin: 0; }
}
@media (max-width: 680px) {
  .nav-actions .nav-ghost { display: none; }
  .grid-2, .grid-3, .grid-3.report, .price-grid, .pro-grid { grid-template-columns: 1fr; }
  .pro-card:first-child { grid-column: auto; flex-direction: column; text-align: center; }
  .pro-card:first-child image-slot { margin: 0 auto 14px; }
  .footer-inner { flex-direction: column; }
  .footer-right { text-align: left; }
  .footer-social { justify-content: flex-start; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn, .hero-cta .btn-text { width: 100%; justify-content: center; }
  #tweaks { left: 16px; right: 16px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ============================================================
   SPLIT REVEAL — panel that opens along a horizontal seam
   ============================================================ */
.split-reveal {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  pointer-events: none; visibility: hidden;
}
.split-reveal.open { pointer-events: auto; visibility: visible; }

.sr-scrim {
  position: absolute; inset: 0;
  background: rgba(26, 22, 22, 0.46);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .42s ease;
}
.split-reveal.open .sr-scrim { opacity: 1; }

.sr-stage {
  position: relative;
  width: min(640px, calc(100vw - 40px));
  max-height: calc(100dvh - 32px);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(12px);
  opacity: 0;
  transition: transform .42s cubic-bezier(.22,.61,.36,1), opacity .3s ease;
}
.split-reveal.open .sr-stage { transform: none; opacity: 1; }

/* Inner scroll area so the close button stays pinned on short viewports */
.sr-body { overflow-y: auto; max-height: calc(100dvh - 32px); -webkit-overflow-scrolling: touch; }

.sr-half { overflow: hidden; }
/* Top half: tinted, holds icon + title. Reveals from the seam upward. */
.sr-top {
  background: var(--primary-light);
  clip-path: inset(100% 0 0 0);
  transition: clip-path .55s cubic-bezier(.22,.61,.36,1) .08s;
}
/* Bottom half: white, holds the detail. Reveals from the seam downward. */
.sr-bottom {
  background: #fff;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .55s cubic-bezier(.22,.61,.36,1) .08s;
}
.split-reveal.open .sr-top,
.split-reveal.open .sr-bottom { clip-path: inset(0 0 0 0); }

/* The accent seam line at the join */
.sr-seam {
  height: 2px; width: 100%;
  background: var(--primary);
  transform: scaleX(0); transform-origin: center;
  transition: transform .5s cubic-bezier(.22,.61,.36,1) .02s;
}
.split-reveal.open .sr-seam { transform: scaleX(1); }

.sr-inner {
  padding: 48px 52px;
  text-align: center;
  opacity: 0; transform: translateY(10px);
  transition: opacity .4s ease .38s, transform .4s ease .38s;
}
.split-reveal.open .sr-inner { opacity: 1; transform: none; }
.sr-top .sr-inner { padding-bottom: 38px; }
.sr-bottom .sr-inner { padding-top: 38px; }

/* Image en fond derrière l'icône + le titre (cartes avec data-image) */
.has-figure .sr-top { position: relative; }
.sr-figure {
  position: absolute; inset: 0; margin: 0; overflow: hidden; z-index: 0;
  background: var(--canvas-warm);
}
.sr-figure[hidden] { display: none; }
.sr-figure img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  display: block;
}
/* Voile dégradé pour la lisibilité du titre posé par-dessus */
.sr-figure::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,22,22,0.12) 0%, rgba(26,22,22,0.30) 42%, rgba(26,22,22,0.86) 100%);
}
.has-figure .sr-top .sr-inner {
  position: relative; z-index: 1;
  min-height: 300px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 36px 52px 32px;
}
.has-figure .sr-title { color: #fff; }

.sr-icon {
  width: 60px; height: 60px; border-radius: 16px; margin: 0 auto 22px;
  background: #fff; color: var(--primary);
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.sr-icon svg { width: 30px; height: 30px; }
.sr-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 4vw, 34px); letter-spacing: -0.025em;
  margin: 0; color: var(--ink); text-wrap: balance;
}
.sr-detail {
  margin: 0 auto; max-width: 46ch;
  font-size: 17px; line-height: 1.65; color: var(--muted-80);
  text-wrap: pretty;
  white-space: pre-line;
}

.sr-close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.7);
  color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  backdrop-filter: blur(4px); transition: background .18s ease, transform .18s ease;
}
.sr-close:hover { background: #fff; transform: rotate(90deg); }

@media (max-width: 680px) {
  .sr-inner { padding: 36px 26px; }
  .sr-detail { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .sr-stage, .sr-top, .sr-bottom, .sr-seam, .sr-inner, .sr-scrim { transition: opacity .2s ease; }
  .sr-top, .sr-bottom { clip-path: inset(0 0 0 0); }
  .sr-seam { transform: scaleX(1); }
  .sr-stage, .sr-inner { transform: none; }
}

/* ============================================================
   REVEAL INLINE — profil esthéticienne, sépare les lignes 06/07
   Le panneau s'ouvre entre les sections (grid-rows 0fr→1fr) et
   pousse la section pricing vers le bas. À l'intérieur, la fiche
   se dévoile avec la même animation de couture (clip-path).
   ============================================================ */
.pro-reveal { width: 100%; }
.pr-shell { width: 100%; }
.pr-shell-inner {
  height: 0; overflow: hidden;
  transition: height .55s cubic-bezier(.22,.61,.36,1);
  background: var(--canvas-warm);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
/* No band frame while collapsed */
.pro-reveal:not(.open) .pr-shell-inner { border-color: transparent; }
.pr-shell .wrap { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }

.pr-card {
  position: relative; max-width: 920px; margin: 0 auto;
  background: #fff; border-radius: var(--r-card);
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
  overflow: hidden;
}

/* ── Couture / reveal des deux moitiés ──
   État de base = visible (l'intro est jouée en JS via Web Animations,
   fiable là où les transitions CSS imbriquées ne s'amorçaient pas). ── */
.pr-half { overflow: hidden; }
.pr-top { background: var(--primary-light); }
.pr-bottom { background: #fff; }
.pr-seam {
  height: 2px; background: var(--primary); transform-origin: center;
}

/* ── Moitié haute : identité ── */
.pr-head {
  display: flex; align-items: center; gap: 28px;
  padding: 38px clamp(28px, 5vw, 54px);
}
.pr-photo {
  flex: none; width: 104px; height: 104px; border-radius: 50%;
  background: #fff center/cover no-repeat;
  display: grid; place-items: center; overflow: hidden;
  box-shadow: var(--shadow-sm); border: 4px solid #fff;
}
.pr-initial {
  font-family: var(--font-display); font-weight: 700; font-size: 44px; color: var(--primary);
}
.pr-photo.has-photo .pr-initial { display: none; }
.pr-role {
  margin: 0 0 2px; font-family: var(--font-ui); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary);
}
.pr-name {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.025em; color: var(--ink);
}
.pr-loc {
  display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0;
  font-size: 15px; color: var(--muted-80);
}
.pr-loc svg { width: 16px; height: 16px; color: var(--primary); }
.pr-badges {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px;
}
.pr-cert {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-ui); font-size: 11.5px; font-weight: 700; letter-spacing: .03em;
  color: var(--ui-fg); background: rgba(255,255,255,0.75); padding: 5px 13px; border-radius: var(--r-pill);
}
.pr-cert.pr-bionome {
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid rgba(167, 243, 208, 0.5);
}
.pr-cert.pr-bionome svg { color: #059669; }
.pr-cert svg { width: 14px; height: 14px; color: var(--primary); }

.pro-tags {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}
.pro-card:first-child .pro-tags {
  justify-content: flex-start;
}
.tag.tag-bionome {
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid rgba(167, 243, 208, 0.5);
}
.tag.tag-bionome svg {
  width: 12px;
  height: 12px;
  color: #059669 !important;
}

/* ── Moitié basse : détails ── */
.pr-bottom { padding: 36px clamp(28px, 5vw, 54px) 40px; }
.pr-intro {
  margin: 0 0 28px; font-size: 17px; line-height: 1.65; color: var(--muted-80);
  max-width: 62ch; text-wrap: pretty;
}
.pr-label {
  margin: 0 0 16px; font-family: var(--font-ui); font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted-48);
}
.pr-details {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 30px;
}
.pr-detail {
  display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start;
  padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas-warm);
}
.pr-detail .pr-d-icon {
  width: 40px; height: 40px; border-radius: 11px; background: #fff; color: var(--primary);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.pr-detail .pr-d-icon svg { width: 20px; height: 20px; }
.pr-d-label { font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-48); }
.pr-d-value { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); margin: 2px 0 5px; letter-spacing: -0.01em; }
.pr-d-desc { font-size: 13.5px; line-height: 1.5; color: var(--muted-48); margin: 0; }
.pr-quals { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.pr-quals span {
  font-family: var(--font-ui); font-size: 13px; font-weight: 600; color: var(--muted-80);
  background: var(--ui-soft); padding: 7px 15px; border-radius: var(--r-pill);
}
.pr-cta { width: fit-content; }

.pr-close {
  position: absolute; top: 14px; right: 14px; z-index: 4;
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.8); color: var(--ink);
  font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center;
  backdrop-filter: blur(4px); transition: background .18s ease, transform .18s ease;
}
.pr-close:hover { background: #fff; transform: rotate(90deg); }

@media (max-width: 680px) {
  .pr-head { flex-direction: column; text-align: center; gap: 18px; }
  .pr-details { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .pr-shell-inner { transition: height .25s ease; }
}

/* ============================================================
   SPOTLIGHT — halo qui suit le curseur (toutes les cartes)
   Overlay .spot injecté par glow.js ; pointer-events: none.
   ============================================================ */
.spot {
  position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; z-index: -1;
  opacity: var(--on, 0); transition: opacity .35s ease;
  background: radial-gradient(220px 220px at var(--mx, 50%) var(--my, 50%),
    color-mix(in srgb, var(--primary) 30%, transparent) 0%, transparent 62%);
}
/* Liseré lumineux sur la bordure, focalisé sous le curseur */
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: radial-gradient(220px 220px at var(--mx, 50%) var(--my, 50%),
    var(--primary) 0%, transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .9;
}
@media (prefers-reduced-motion: reduce) {
  .spot { transition: none; }
}

/* ============================================================
   03 — FOCUS RAIL (coverflow 3D, module sombre immersif)
   Carte centrale nette, voisines inclinées / floutées / désaturées.
   ============================================================ */
.rail {
  position: relative; margin-top: clamp(48px, 7vw, 80px);
  border-radius: 28px; overflow: hidden;
  background: #161616; color: #fff;
  box-shadow: var(--shadow-lg);
  outline: none;
}
.rail:focus-visible { box-shadow: var(--shadow-lg), 0 0 0 3px var(--primary-light); }

/* Pleine largeur : sort du conteneur, bord à bord, sans coins arrondis */
.rail--full {
  margin-top: 0;
  padding-top: clamp(48px, 7vw, 80px);
  border-radius: 0;
  width: 100%;
}

/* Arrière-plan ambiant : copie floutée de l'image active */
.rail-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.rail-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.25); filter: blur(64px) saturate(1.9);
  opacity: 0; transition: opacity .8s ease;
}
.rail-bg img.is-active { opacity: .42; }
.rail-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,22,22,.45) 0%, rgba(22,22,22,.62) 50%, rgba(22,22,22,.95) 100%);
}

/* Scène coverflow */
.rail-stage {
  position: relative; z-index: 1; height: 490px;
  display: flex; align-items: center; justify-content: center;
  perspective: 1200px;
  cursor: grab; user-select: none; -webkit-user-select: none;
  touch-action: pan-y;
}
.rail-stage:active { cursor: grabbing; }
.rail-track { position: relative; width: 280px; height: 412px; transform-style: preserve-3d; }
.rail-card {
  position: absolute; inset: 0; margin: auto;
  width: 280px; height: 412px;
  border-radius: 18px; overflow: hidden; background: #2a2a2a;
  border-top: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 30px 60px rgba(0,0,0,.5);
  transform-style: preserve-3d; will-change: transform, opacity, filter;
  transition: transform .6s cubic-bezier(.22,.61,.36,1), opacity .5s ease, filter .5s ease;
}
.rail-card img, .rail-card video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.rail-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.10) 0%, transparent 38%, rgba(0,0,0,.22) 100%);
}
.rail-card.is-center { cursor: pointer; }
.rail-card:not(.is-center) { cursor: pointer; }

/* Pied : texte + contrôles */
.rail-foot {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  padding: 0 clamp(24px, 5vw, 48px) clamp(32px, 5vw, 44px);
}
.rail-info { flex: 1; min-width: 240px; min-height: 112px; }
.rail-meta {
  font-family: var(--font-ui); font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--primary);
}
.rail-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -0.025em;
  color: #fff; margin: 10px 0 8px; line-height: 1.12; text-wrap: balance;
}
.rail-desc { margin: 0; max-width: 46ch; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.66); }
.rail-nav { display: flex; align-items: center; gap: 6px; }
.rail-count {
  min-width: 56px; text-align: center; font-family: var(--font-ui);
  font-size: 12px; font-weight: 600; letter-spacing: .06em; color: rgba(255,255,255,0.55);
}
.rail-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: #fff; font-size: 24px; line-height: 1;
  border: 1px solid rgba(255,255,255,0.14);
  display: grid; place-items: center;
  transition: background .2s ease, transform .15s ease, border-color .2s ease;
}
.rail-btn:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.3); }
.rail-btn:active { transform: scale(0.94); }

/* État de chargement (loader 3 points, teinte de marque) */
.rail-loader {
  position: absolute; inset: 0; z-index: 5;
  display: grid; place-items: center;
  background: #161616;
  transition: opacity .5s ease, visibility .5s;
}
.rail-loader[hidden] { display: grid; opacity: 0; visibility: hidden; pointer-events: none; }

.loader-dots { display: inline-flex; align-items: center; gap: 6px; }
.loader-dots i {
  display: block; width: 12px; height: 12px; border-radius: 50%;
  background: var(--primary);
  animation: loaderDot 1s ease-in-out infinite;
}
.loader-dots i:nth-child(2) { animation-delay: .2s; }
.loader-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes loaderDot {
  0%, 100% { transform: translateX(0) scale(1);     opacity: .5; }
  50%      { transform: translateX(10px) scale(1.2); opacity: 1; }
}

@media (max-width: 680px) {
  .rail-stage { height: 410px; }
  .rail-track, .rail-card { width: 230px; height: 338px; }
  .rail-foot { flex-direction: column; align-items: flex-start; gap: 18px; }
  .rail-nav { align-self: stretch; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .rail-card { transition: opacity .3s ease; }
  .rail-bg img { transition: opacity .3s ease; }
  .loader-dots i { animation: none; opacity: .85; }
}

/* ============================================================
   CTA SCROLL BACKGROUND ANIMATION — Row 07
   ============================================================ */
.pricing-track {
  position: relative;
  height: 250vh; /* Track height for sticky scroll scroll length */
}

.pricing-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Start from top to respect padding */
  overflow: hidden;
  box-sizing: border-box;
  background: var(--ui-soft);
  padding-top: 90px; /* Generous spacing at the top */
}

.pricing-sticky .wrap {
  position: relative;
  z-index: 3;
}

.cta-scroll-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.55; /* Subtle and premium background blending */
  transition: opacity 0.5s ease;
}

.cta-scroll-bg canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 20%, var(--ui-soft) 100%);
  z-index: 2;
  pointer-events: none;
}

/* On mobile/tablet, disable sticky scroll so it doesn't crop the stacked cards */
@media (max-width: 1024px) {
  .pricing-track {
    height: auto !important;
  }
  .pricing-sticky {
    position: relative !important;
    height: auto !important;
    padding-block: var(--sec-pad) !important;
  }
}

.bionome-leaf-svg {
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
  transform-origin: center;
  animation: bionomeLeafPulse 2.5s ease-in-out infinite;
}
.bionome-leaf-svg path:last-child {
  animation: bionomeVeinFade 1s ease-out forwards;
}

@keyframes bionomeLeafPulse {
  0%, 100% { transform: scale(0.9); }
  50% { transform: scale(1.05); }
}
@keyframes bionomeVeinFade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
