/* Deasy Care · site public. Direction « Fil rouge » (flyer v2 D, film de lancement).
   Couleurs et polices : charte du site (variables reprises de concepts/floraison.css). */

:root {
  --white: #ffffff;
  --cream: #fffaf5;
  --blush: #ffe7ea;
  --ink: #26313a;
  --ink-soft: #4a545d;
  --muted: #7d858c;
  --line: #e9dcd7;
  --rule: #e7e3e0;
  --pink: #ff3d81;
  --burgundy: #b52e65;
  --orange: #ffb020;
  --plum: #33273d;
  --plum-deep: #2b2133;
  --plum-ink: #241c2b;

  --display: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(22px, 5vw, 64px);
  --header: 68px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 18px/1.62 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; border-radius: 4px; }
strong { font-weight: 700; color: var(--ink); }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; }
ol, ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 6px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- En-tête ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 150px; height: auto; }
.site-header nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); font: 600 14px/1 var(--display); }
.site-header nav a { text-decoration: none; color: var(--ink-soft); transition: color .2s; }
.site-header nav a:hover { color: var(--ink); }
.site-header .nav-cta { padding: 11px 16px; border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink); transition: background .2s, color .2s; }
.site-header .nav-cta:hover { background: var(--ink); color: #fff; }

/* ---------- Typographie partagée ---------- */

.eyebrow {
  margin-bottom: 22px;
  font: 800 12px/1.2 var(--display);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--burgundy);
}
.eyebrow-light { color: #ff9cbf; }
.section-title {
  font-size: clamp(38px, 5.3vw, 78px);
  line-height: 1;
  letter-spacing: -.045em;
  color: var(--ink);
  text-wrap: balance;
}
.section-title em { font-style: normal; color: var(--burgundy); }
.figure {
  font: 700 1.45em/1 var(--display);
  letter-spacing: -.02em;
  color: var(--burgundy);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px;
  border-radius: 999px;
  font: 700 15px/1 var(--display);
  text-decoration: none;
  transition: transform .25s var(--ease), background .2s, color .2s, border-color .2s;
}
.button:hover { transform: translateY(-2px); }
.button-solid { background: var(--ink); color: #fff; }
.button-solid:hover { background: #111a21; }
.button-line { border: 1.5px solid var(--rule); color: var(--ink); }
.button-line:hover { border-color: var(--ink); }
.text-link { display: inline-flex; gap: 8px; margin-top: 22px; font: 700 15px/1.3 var(--display); color: var(--burgundy); text-decoration: none; }
.text-link span { transition: transform .25s var(--ease); }
.text-link:hover span { transform: translateX(4px); }

/* ---------- Fil rouge ---------- */

main { position: relative; }
.fil { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.fil-map { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fil-segment { position: absolute; overflow: hidden; }
.fil-ink { width: 100%; height: 100%; will-change: opacity; }
.fil-cover { position: absolute; background: var(--white); will-change: transform; }
.fil.is-static .fil-ink { will-change: auto; }
.fil-line { fill: none; stroke: var(--pink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fil-accent { fill: none; stroke: var(--pink); stroke-width: 5; stroke-linecap: round; }
.fil-dot { fill: var(--pink); transition: transform .5s var(--ease), opacity .4s; transform-box: fill-box; transform-origin: center; }
.fil-node { fill: var(--white); stroke: var(--rule); stroke-width: 2; transition: fill .35s, stroke .35s; }
.fil-node.is-on { stroke: var(--pink); }
.js .fil-dot:not(.is-on) { transform: scale(0); opacity: 0; }
html:not(.js) .fil { display: none; }

/* Sections au-dessus desquelles le fil passe « derrière ». */
.film, .site-footer { position: relative; z-index: 2; }
main > section:not(.film) > .wrap, .frise { position: relative; z-index: 3; }

/* ---------- 1. Ouverture ---------- */

.hero { padding: clamp(80px, 13vh, 150px) 0 clamp(90px, 12vh, 140px); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(44px, 6vw, 72px); }
.hero-title {
  font-size: clamp(46px, 7.6vw, 116px);
  line-height: .95;
  letter-spacing: -.055em;
  color: var(--ink);
}
.hero-mark { display: inline-block; padding-bottom: .08em; }
.hero-side { max-width: 500px; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- 2. Le constat ---------- */

.constat { padding: clamp(70px, 9vw, 120px) 0 0; }
.constat .section-title { max-width: 900px; }
.constat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); margin-top: clamp(40px, 5vw, 64px); color: var(--ink-soft); }
.ambition {
  margin: clamp(56px, 7vw, 96px) 0 0;
  max-width: 980px;
  font: 600 clamp(24px, 2.7vw, 38px)/1.25 var(--display);
  letter-spacing: -.025em;
  color: var(--ink-soft);
}
.ambition strong { color: var(--ink); }

.frise {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(64px, 8vw, 110px);
  padding-bottom: clamp(90px, 11vw, 150px);
}
.frise li { display: grid; grid-template-rows: auto 22px auto; row-gap: 10px; }
.frise small { font: 500 14px/1 var(--body); color: var(--muted); font-variant-numeric: tabular-nums; }
.frise i { align-self: center; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); transition: background .35s, transform .45s var(--ease); }
.frise i.is-on { background: var(--pink); transform: scale(1.15); }
.frise span { font: 700 clamp(15px, 1.4vw, 19px)/1.2 var(--display); color: var(--ink); }

/* ---------- 3. Film ---------- */

.film {
  padding: clamp(80px, 10vw, 130px) 0;
  background: radial-gradient(circle at 85% 12%, #5b325e 0, #30253f 48%, #282339 100%);
  color: #fff;
}
.film .section-title { color: #fff; }
.film .section-title em { color: #ff9cbf; }
.film-head { display: flex; flex-direction: column; margin-bottom: clamp(36px, 5vw, 56px); }
.film-frame { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #1d1724; box-shadow: 0 40px 120px rgba(10, 5, 15, .45); }
.film-frame video { width: 100%; height: 100%; object-fit: cover; }

/* Lecteur. Sans JavaScript, la vidéo garde ses contrôles natifs et ces éléments restent cachés. */
.film-start, .film-bar { display: none; }
.film-frame.has-player .film-start { display: flex; }
.film-frame.has-player .film-bar { display: flex; }
.film-frame.has-player video { cursor: pointer; }

.film-start {
  position: absolute; inset: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 0; border: 0; cursor: pointer;
  background: radial-gradient(circle at 50% 50%, rgba(36, 28, 43, .62) 0, rgba(36, 28, 43, .34) 40%, rgba(36, 28, 43, .2) 100%);
  color: #fff;
  transition: opacity .45s var(--ease), visibility .45s;
}
.film-start-disc {
  display: grid; place-items: center;
  width: clamp(64px, 8vw, 92px); aspect-ratio: 1; border-radius: 50%;
  background: var(--white); color: var(--plum);
  box-shadow: 0 18px 50px rgba(20, 12, 26, .35);
  transition: transform .45s var(--ease), background-color .3s, color .3s;
}
/* Le tracé est déjà décalé d'environ 2 px vers la droite (centrage optique du triangle). */
.film-start-disc svg { width: 38%; fill: currentColor; transform: translateX(-3%); }
.film-start-label {
  display: inline-flex; align-items: baseline; gap: 10px;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(36, 28, 43, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 700 15px/1 var(--display); letter-spacing: .01em;
}
.film-start-time { font-weight: 500; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.film-start:hover .film-start-disc, .film-start:focus-visible .film-start-disc { transform: scale(1.06); background: var(--pink); color: var(--white); }
.film-start:focus-visible { outline: none; }
.film-frame.is-started .film-start { opacity: 0; visibility: hidden; }

.film-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  align-items: center; gap: clamp(8px, 1.2vw, 14px);
  padding: 44px clamp(14px, 2vw, 24px) clamp(12px, 1.6vw, 18px);
  background: linear-gradient(to top, rgba(22, 15, 28, .78), rgba(22, 15, 28, 0));
  color: #fff;
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.film-frame.is-started .film-bar { opacity: 1; transform: none; pointer-events: auto; }
.film-frame.is-started.is-idle .film-bar { opacity: 0; transform: translateY(6px); pointer-events: none; }
.film-frame.is-idle, .film-frame.is-idle video { cursor: none; }

.film-btn {
  flex: none; display: grid; place-items: center;
  width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: #fff; cursor: pointer;
  transition: background-color .2s;
}
.film-btn:hover { background: rgba(255, 255, 255, .14); }
.film-btn svg { width: 22px; height: 22px; fill: currentColor; }
.film-btn .stroke { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.film-btn .i-pause, .film-btn .i-muted, .film-btn .i-exit { display: none; }
.film-frame.is-playing .film-btn .i-play { display: none; }
.film-frame.is-playing .film-btn .i-pause { display: block; }
.film-frame.is-muted .film-btn .i-sound { display: none; }
.film-frame.is-muted .film-btn .i-muted { display: block; }
.film-frame.is-full .film-btn .i-full { display: none; }
.film-frame.is-full .film-btn .i-exit { display: block; }

.film-seek {
  --p: 0%;
  flex: 1; min-width: 0; height: 22px; margin: 0;
  background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.film-seek::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(to right, var(--pink) var(--p), rgba(255, 255, 255, .28) var(--p));
}
.film-seek::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .28); }
.film-seek::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--pink); }
.film-seek::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px; margin-top: -5px; border: 0; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  transform: scale(0); transition: transform .2s var(--ease);
}
.film-seek::-moz-range-thumb {
  width: 14px; height: 14px; border: 0; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  transform: scale(0); transition: transform .2s var(--ease);
}
.film-bar:hover .film-seek::-webkit-slider-thumb, .film-seek:focus-visible::-webkit-slider-thumb { transform: scale(1); }
.film-bar:hover .film-seek::-moz-range-thumb, .film-seek:focus-visible::-moz-range-thumb { transform: scale(1); }
.film-seek:focus-visible { outline: none; }
.film-seek:focus-visible::-webkit-slider-runnable-track { box-shadow: 0 0 0 3px rgba(255, 61, 129, .45); }

.film-time { flex: none; font: 500 13px/1 var(--display); font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .82); }

.film-frame.is-full { border-radius: 0; box-shadow: none; background: #000; }
.film-frame.is-full video { object-fit: contain; }

.film-soon { display: none; }
.film-frame.is-soon .film-start, .film-frame.is-soon .film-bar { display: none; }
.film-frame.is-soon video { pointer-events: none; }
.film-frame.is-soon .film-soon {
  display: block; position: absolute; left: 24px; bottom: 22px;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(36, 28, 43, .78); backdrop-filter: blur(8px);
  font: 700 14px/1 var(--display); color: #fff;
}

/* ---------- 4. Les solutions ---------- */

.solutions { padding: clamp(90px, 11vw, 150px) 0 0; }
.solutions-title { font-size: clamp(46px, 7vw, 108px); line-height: .95; letter-spacing: -.055em; padding-bottom: 26px; }
.solutions-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); margin-top: clamp(40px, 5vw, 60px); color: var(--ink-soft); font-size: clamp(18px, 1.5vw, 20px); }

.product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-top: clamp(80px, 10vw, 140px); }
.product h3 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1; letter-spacing: -.04em; }
.product-sub { margin: 14px 0 22px; font: 700 clamp(18px, 1.5vw, 21px)/1.3 var(--display); color: var(--burgundy); letter-spacing: -.01em; }
.product-copy > p:last-child { color: var(--ink-soft); }

/* Carte Analytics (illustration) */
.an-card { position: relative; margin: 0; border: 1px solid var(--rule); border-radius: 18px; background: var(--white); box-shadow: 0 30px 80px rgba(38, 49, 58, .07); overflow: hidden; }
.an-tag { position: absolute; right: 20px; top: 18px; font: 700 10px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.an-block { padding: clamp(20px, 2.6vw, 32px); }
.an-block + .an-block { border-top: 1px solid var(--rule); }
.an-block h4 { font-size: clamp(17px, 1.5vw, 20px); letter-spacing: -.02em; color: var(--ink); padding-right: 150px; }
.an-block h4 small { margin-left: 8px; font: 500 13px var(--body); color: var(--muted); letter-spacing: 0; }
.an-groups { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 36px); margin-top: 22px; }
.an-spec { font: 800 10.5px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--burgundy); }
.an-group { display: flex; flex-direction: column; }
.an-group ul { margin: 12px 0 16px; font-size: 14px; line-height: 1.75; color: var(--ink-soft); }
.an-num { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--rule); }
.an-num strong { grid-row: span 2; font: 700 clamp(38px, 3.6vw, 52px)/1 var(--display); letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.an-num span { font-size: 12.5px; line-height: 1.3; color: var(--ink-soft); }
.an-num em { justify-self: start; margin-top: 4px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; font: 700 10.5px/1.2 var(--display); font-style: normal; color: var(--burgundy); }
.beds { position: relative; margin-top: 18px; }
.beds svg { width: 100%; height: auto; overflow: visible; }
.beds .grid line { stroke: #efe8e5; stroke-width: 1; }
.beds .grid text, .beds .axis text { font: 500 10px var(--body); fill: var(--muted); }
.beds .bar { fill: #f4b9cd; transform-box: fill-box; transform-origin: bottom; transition: fill .2s; }
.beds .bar.is-peak { fill: var(--burgundy); }
.beds .bar.is-hover { fill: var(--pink); }
.beds .peak-label { font: 700 12px var(--display); fill: var(--ink); }
.js .an-card:not(.is-in) .bar { transform: scaleY(0); }
.js .an-card .bar { transition: transform .9s var(--ease), fill .2s; }
.beds-tip { position: absolute; pointer-events: none; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: #fff; font: 600 12px/1.2 var(--body); white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); opacity: 0; transition: opacity .15s; }
.beds-tip.is-on { opacity: 1; }
.an-note { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Deasy Flow ---------- */

/* Le texte reste à gauche pendant que la scène se joue à droite, sur fond blanc. */
.product-flow { display: block; padding-top: clamp(80px, 10vw, 140px); }
.flow-scroll { height: 300vh; }
.flow-pin {
  position: sticky; top: var(--header);
  height: calc(100vh - var(--header)); height: calc(100svh - var(--header));
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 4vw, 56px); align-items: center;
}
.flow-copy > p:not(.eyebrow):not(.product-sub) { color: var(--ink-soft); font-size: 17px; }
.flow-steps { margin-top: 30px; counter-reset: step; }
.flow-steps li {
  display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start;
  padding: 11px 0; border-top: 1px solid var(--rule);
  font: 600 15px/1.35 var(--display); letter-spacing: -.01em; color: var(--ink);
  transition: color .4s;
}
.flow-steps b {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid currentColor; font-size: 11px; font-weight: 800;
  transition: background .4s, border-color .4s, color .4s;
}
.js .flow-steps li { color: #b3b8bd; }
.js .flow-steps li.is-done { color: var(--ink-soft); }
.js .flow-steps li.is-done b { border-color: var(--pink); color: var(--pink); }
.js .flow-steps li.is-active { color: var(--ink); }
.js .flow-steps li.is-active b { background: var(--pink); border-color: var(--pink); color: #fff; }
.flow-visual { position: relative; height: 100%; min-width: 0; }

.flow-stage {
  --sw: 860; --sh: 672;
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--sw) * 1px); height: calc(var(--sh) * 1px);
  transform: translate(-50%, -50%) scale(var(--k, 1));
  font-family: var(--display);
}
.stage-tag {
  position: absolute; right: 0; top: 0;
  font: 700 10.5px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.stage-caption { display: none; }

/* Courrier, posé sur l'interface */
.doc {
  position: absolute; left: 0; top: 252px; width: 300px; height: 416px; z-index: 2;
  padding: 24px 26px;
  background: #fff;
  color: #1d1d1f;
  font: 400 12px/1.55 Georgia, 'Times New Roman', serif;
  border: 1px solid #ece7e3;
  box-shadow: 0 1px 2px rgba(38, 49, 58, .06), 0 24px 60px rgba(38, 49, 58, .16);
  transform: translate3d(var(--doc-x, 0), var(--doc-y, 0), 0) rotate(var(--doc-r, 0deg));
  opacity: var(--doc-o, 1);
  overflow: hidden;
}
.doc p { margin: 0 0 10px; }
.doc-head { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.doc-from { display: flex; flex-direction: column; font-size: 10.5px; line-height: 1.4; color: #55565a; }
.doc-from strong { color: #1d1d1f; font-size: 11.5px; }
.doc-date { font-size: 10px; color: #55565a; white-space: nowrap; }
.doc-to, .doc-optional { display: none; }
.doc-subject { font-weight: 700; font-size: 11.5px; }
.doc-sign { margin-top: 6px; font: italic 20px/1 'Brush Script MT', 'Segoe Script', cursive; color: #2c3a63; text-align: right; padding-right: 20px; }
.doc mark {
  background-color: transparent;
  color: inherit;
  padding: 1px 0;
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease);
}
.doc mark.is-on { background-color: var(--blush); box-shadow: inset 0 -2px 0 var(--pink); }
.doc mark.is-current { background-color: #ffd0dd; }

/* Interface Flow */
.app {
  position: absolute; left: 170px; top: 30px; width: 690px; height: 610px; z-index: 1;
  display: grid; grid-template-columns: 138px 1fr;
  border-radius: 14px; overflow: hidden;
  background: var(--plum); color: var(--cream);
  box-shadow: 0 30px 80px rgba(38, 30, 50, .28), 0 0 0 1px rgba(38, 30, 50, .08);
  transform: translate3d(var(--app-x, 0), var(--app-y, 0), 0);
  opacity: var(--app-o, 1);
  font-size: 12.5px; line-height: 1.35;
}
.app-side { display: flex; flex-direction: column; padding: 18px 10px; background: var(--plum-deep); border-right: 1px solid rgba(255, 250, 245, .08); }
.app-brand { display: flex; align-items: center; gap: 9px; padding: 0 6px 22px; font-size: 15px; font-weight: 700; }
.app-nav li { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 8px; color: rgba(255, 250, 245, .7); font-weight: 600; }
.app-nav li + li { margin-top: 2px; }
.app-nav li.is-active { background: rgba(255, 250, 245, .08); color: var(--cream); }
.app-badge { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--orange); color: var(--plum-ink); font-size: 10px; transition: transform .45s var(--ease); }
.app-badge:not(.is-on) { transform: scale(0); }
.app-user { margin-top: auto; display: flex; align-items: center; gap: 9px; padding: 0 4px; }
.app-user > span { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255, 250, 245, .25); font-size: 10px; font-weight: 800; }
.app-user strong { display: block; color: var(--cream); font-size: 11.5px; }
.app-user small { color: rgba(255, 250, 245, .6); font-size: 10px; }

.app-main { padding: 18px 20px; min-width: 0; }
.app-crumb { color: rgba(255, 250, 245, .6); font-size: 11px; font-weight: 600; }
.app-crumb span { color: var(--cream); }
.app-patient { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 8px 0 14px; }
.app-patient strong { margin-right: 6px; font-size: 26px; letter-spacing: -.03em; color: var(--cream); }
.app-patient span { padding: 4px 9px; border-radius: 999px; background: rgba(255, 250, 245, .07); font-size: 11px; font-weight: 600; }
.app-card { padding: 13px 14px; border-radius: 10px; background: rgba(255, 250, 245, .045); border: 1px solid rgba(255, 250, 245, .1); }
.app-card h4 { margin-bottom: 10px; font-size: 13px; color: var(--cream); }
.app-cols { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
/* Le message vide et la liste partagent la même case : aucun bloc ne se décale. */
.app-cols .app-card { display: grid; grid-template-columns: minmax(0, 1fr); padding-block: 10px; }
.app-cols .app-card > h4 { grid-area: 1 / 1; }
.app-cols .app-card > ul, .app-cols .app-card > .app-empty { grid-area: 2 / 1; align-self: start; }

.track { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); }
.track::before { content: ''; position: absolute; left: 7px; right: 30px; top: 7px; height: 1.5px; background: rgba(249, 173, 112, .45); }
.track li { position: relative; display: flex; flex-direction: column; gap: 2px; padding-right: 6px; }
.track i { position: relative; width: 15px; height: 15px; margin-bottom: 6px; border-radius: 50%; background: var(--plum); border: 1.5px solid rgba(255, 250, 245, .55); transition: background .4s, border-color .4s, transform .45s var(--ease); }
.track strong { font-size: 11px; color: var(--cream); line-height: 1.2; }
.track small { font-size: 10px; color: rgba(255, 250, 245, .6); }
.track em { font-style: normal; font-size: 8.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; line-height: 1.25; margin-top: 2px; }
/* Réserver les deux libellés, y compris leurs retours à la ligne sur mobile. */
.track [data-after] { display: grid; }
.track [data-after] > span, .track [data-after]::before, .track [data-after]::after { grid-area: 1 / 1; }
.track [data-after]::before { content: attr(data-before); visibility: hidden; }
.track [data-after]::after { content: attr(data-after); visibility: hidden; }
.track li[data-state="passee"] i { background: var(--cream); border-color: var(--cream); }
.track li[data-state="attente"] i { border-color: var(--orange); }
.track li[data-state="attente"] em { color: var(--orange); }
.track li[data-state="repere"] i { background: var(--pink); border-color: var(--pink); transform: scale(1.12); }
.track li[data-state="repere"] i::after { content: ''; position: absolute; left: 4px; top: 1.5px; width: 3.5px; height: 7px; border: solid #fff; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.track li[data-state="repere"] em { color: var(--pink); }
.track li[data-state="propose"] i { border-color: var(--orange); }
.track li[data-state="propose"] i::before, .lines li[data-status="propose"] i::before { content: ''; position: absolute; left: 50%; top: 50%; width: 1.6px; height: 5px; background: var(--orange); transform: translate(-50%, -100%); border-radius: 1px; }
.track li[data-state="propose"] i::after, .lines li[data-status="propose"] i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 1.6px; background: var(--orange); transform: translate(0, -50%); border-radius: 1px; }
.track li[data-state="propose"] em { color: var(--orange); }

.app-empty { color: rgba(255, 250, 245, .5); font-size: 11.5px; display: none; }
.app-card.is-empty .app-empty { display: block; }
.extractions li, .lines li { display: grid; visibility: hidden; }
.extractions li.is-on, .lines li.is-on { visibility: visible; animation: line-in .55s var(--ease) both; }
@keyframes line-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.extractions li { grid-template-columns: 96px 1fr auto; gap: 8px; align-items: baseline; padding: 5px 0; border-top: 1px solid rgba(255, 250, 245, .1); }
.extractions b { font-size: 8.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 250, 245, .6); }
.extractions span { font-size: 12px; font-weight: 600; color: var(--cream); }
.extractions em { font-style: normal; padding: 2px 7px; border-radius: 999px; border: 1px solid rgba(255, 61, 129, .55); color: #ff9cbf; font-size: 9.5px; font-weight: 700; }
.lines li { grid-template-columns: 20px 1fr; gap: 8px; padding: 5px 0; border-top: 1px solid rgba(255, 250, 245, .1); }
.lines i { position: relative; width: 18px; height: 18px; border-radius: 50%; }
.lines li[data-status="repere"] i, .lines li[data-status="prepare"] i { background: var(--pink); }
.lines li[data-status="repere"] i::after, .lines li[data-status="prepare"] i::after { content: ''; position: absolute; left: 6.2px; top: 3px; width: 4.5px; height: 8.5px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.lines li[data-status="propose"] i { border: 1.8px solid var(--orange); }
.lines span { display: block; font-size: 12px; font-weight: 600; color: var(--cream); }
.lines small { display: block; margin-top: 2px; font-size: 8.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); }
.lines li[data-status="propose"] small { color: var(--orange); }

/* ---------- 5. Terrains ---------- */

.terrains { padding: clamp(90px, 11vw, 150px) 0 0; }
.terrains-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); }
.terrain { padding-top: 28px; border-top: 1px solid var(--rule); color: var(--ink-soft); }
.terrain-kicker { font: 800 12px/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.terrain-figure { margin: 22px 0 14px; }
.terrain-figure .figure { font-size: clamp(64px, 7vw, 104px); letter-spacing: -.05em; }
.terrain-figure-text { font: 700 clamp(30px, 3.2vw, 46px)/1.05 var(--display); letter-spacing: -.04em; color: var(--ink); padding: 8px 0 6px; }

/* ---------- 6. Équipe ---------- */

.equipe { padding: clamp(100px, 12vw, 160px) 0 0; }
.equipe .section-title { max-width: 860px; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(44px, 5vw, 64px); }
.member { padding: 28px 26px 30px; border-radius: 18px; background: var(--cream); border: 1px solid #f2e7e2; transition: transform .35s var(--ease), box-shadow .35s; }
.member:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(38, 49, 58, .08); }
.avatar { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 26px; border-radius: 50%; background: var(--white); border: 2px solid var(--pink); font: 800 18px/1 var(--display); letter-spacing: .02em; color: var(--ink); }
.member h3 { font-size: 24px; letter-spacing: -.03em; line-height: 1.15; }
.member p { margin-top: 8px; color: var(--ink-soft); font-size: 16px; line-height: 1.5; }
.member .member-role { margin-top: 6px; font: 800 12px/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--burgundy); }
.member .member-role + p { margin-top: 14px; }

/* ---------- 7. Contact ---------- */

.contact { padding: clamp(110px, 13vw, 170px) 0 clamp(80px, 10vw, 130px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.contact .section-title { padding-bottom: 28px; }
.contact-copy { color: var(--ink-soft); padding-bottom: 28px; }
.contact-mail { display: inline-block; margin: 22px 0 14px; font: 700 clamp(24px, 2.4vw, 32px)/1.1 var(--display); letter-spacing: -.03em; color: var(--ink); text-decoration-color: var(--pink); text-decoration-thickness: 2px; }
.contact-mail:hover { color: var(--burgundy); }
.contact-copy small { display: block; margin-top: 18px; font-size: 13px; color: var(--muted); }
.contact-linkedin { display: flex; margin-top: 4px; }

.sources { position: relative; z-index: 3; padding: 0 0 34px; font-size: 12px; color: var(--muted); }

/* ---------- Pied de page ---------- */

.site-footer { padding: 34px 0; background: var(--plum-ink); color: rgba(255, 250, 245, .7); font-size: 14px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.footer-inner nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: #fff; }

/* ---------- Apparitions ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .product { grid-template-columns: 1fr; }
  /* Texte au-dessus, puis la scène figée seule pendant le défilement. */
  .flow-scroll { height: auto; }
  .flow-pin { position: static; display: block; height: auto; }
  .flow-pin::after { content: ''; display: block; height: 200vh; }
  .flow-steps { display: none; }
  .flow-visual { position: sticky; top: var(--header); height: calc(100vh - var(--header)); height: calc(100svh - var(--header)); margin-top: 36px; }
  .stage-caption { display: block; position: absolute; left: 0; top: 0; width: 560px; font: 700 20px/1.25 var(--display); letter-spacing: -.02em; color: var(--ink); transition: opacity .35s; }
  .stage-caption.is-swapping { opacity: 0; }
  .stage-tag { top: 6px; }
  .flow-stage { --sh: 730; }
  .flow-stage .app { top: 100px; }
  .flow-stage .doc { top: 270px; }
}

@media (max-width: 820px) {
  :root { --header: 60px; }
  body { font-size: 17px; }
  .brand img { width: 124px; }
  .site-header nav a:not(.nav-cta) { display: none; }
  .site-header .nav-cta { padding: 10px 14px; font-size: 13px; }
  .br-wide { display: none; }
  .constat-grid, .solutions-intro, .terrains-grid, .contact-grid { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; }
  .frise { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .frise li:nth-child(n + 3) { display: none; }
  .flow-stage { --sw: 400; --sh: 810; }
  .stage-tag { left: 8px; right: auto; top: 4px; font-size: 9.5px; }
  .stage-caption { left: 8px; top: 26px; width: 384px; font-size: 19px; }
  .flow-stage .doc { left: 14px; top: 112px; width: 372px; height: 170px; padding: 16px 20px; font-size: 11px; line-height: 1.5; }
  .doc-head, .doc-to, .doc-optional, .doc-sign, .doc-subject { display: none; }
  .flow-stage .app { left: 6px; top: 262px; width: 388px; height: 545px; grid-template-columns: 1fr; font-size: 11px; }
  .app-patient span:not(:nth-child(2)) { display: none; }
  .an-tag { position: static; display: block; padding: 18px 20px 0; }
  .an-block h4 { padding-right: 0; }
  .app-side { display: none; }
  .app-main { padding: 14px 14px; }
  .app-crumb, .app-chip-wide { display: none; }
  .app-patient { margin: 0 0 10px; }
  .app-patient strong { font-size: 21px; }
  .app-cols { grid-template-columns: 1fr; gap: 8px; margin-top: 8px; }
  .app-card { padding: 10px 11px; }
  .app-card h4 { margin-bottom: 6px; font-size: 12px; }
  .track strong { font-size: 9px; }
  .track small { font-size: 8.5px; }
  .track em { font-size: 7px; letter-spacing: .06em; }
  .extractions li, .lines li { padding: 5px 0; }
  .extractions li { grid-template-columns: 66px 1fr auto; }
  .extractions span, .lines span { font-size: 11px; }
}

@media (max-width: 560px) {
  .frise { grid-template-columns: repeat(4, 1fr); }
  .frise li:nth-child(n + 3) { display: grid; }
  .frise span { font-size: 12px; }
  .frise small { font-size: 12px; }
  .hero-actions .button { flex: 1 1 100%; }
  .an-groups { grid-template-columns: 1fr; row-gap: 34px; }
  .film-frame { border-radius: 12px; }
  .film-bar { gap: 4px; padding: 24px 8px 6px; }
  .film-btn { width: 34px; height: 34px; }
  .film-btn svg { width: 20px; height: 20px; }
  .film-time { font-size: 12px; margin-left: 4px; }
  .film-start { gap: 12px; }
  .film-start-label { padding: 7px 13px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
