/* =========================================================
   Mon premier flux — récit à la première personne
   Fond clair & sobre · personnage animé · scrollytelling.
   ========================================================= */

:root {
  /* Charte Verisure */
  --bg:        #f7f7f7;   /* fond neutre */
  --bg-card:   #ffffff;
  --ink:       #262626;   /* noir profond */
  --ink-soft:  #636466;   /* gris moyen */
  --line:      #dcdde0;   /* séparateurs (gris clair) */

  --collab:    #ed002f;   /* rouge Verisure */
  --service:   #262626;   /* noir profond */
  --accent:    #ed002f;   /* rouge (accents) */
  --green:     #73b143;   /* vert succès */
  --rosepale:  #fcf4f2;   /* rouge pâle */

  --radius:    20px;
  --wrap:      1080px;
  --shadow:    0 14px 40px -18px rgba(38, 38, 38, 0.16);
  --shadow-lg: 0 30px 70px -28px rgba(38, 38, 38, 0.24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Fira Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(237,0,47,0.05), transparent 60%),
    radial-gradient(900px 560px at -5% 108%, rgba(38,38,38,0.04), transparent 60%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Barre de progression ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 100; background: transparent;
}
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--collab), var(--service));
}

/* ---------- Sélecteur de vue ---------- */
.views-wrap { position: relative; }
.switcher {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(10px);
  background: rgba(247, 248, 252, 0.82);
  border-bottom: 1px solid var(--line);
}
.switcher-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.switcher-title { font-weight: 800; font-size: 0.92rem; letter-spacing: 0.01em; white-space: nowrap; }
.switch { max-width: 100%; }
.switch-btn { white-space: nowrap; }
.switch {
  position: relative;
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}
.switch-thumb {
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--collab), var(--service));
  transition: left 0.38s cubic-bezier(.4,0,.2,1), width 0.38s cubic-bezier(.4,0,.2,1), background 0.38s ease;
}
.switch[data-active="equipe"] .switch-thumb {
  background: linear-gradient(100deg, var(--service), var(--accent));
}
.switch[data-active="direction"] .switch-thumb {
  background: linear-gradient(100deg, var(--accent), #262626);
}
.switch-btn {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.3s ease;
  white-space: nowrap;
}
.switch-btn.is-active { color: #fff; }

/* vue masquée */
.view[hidden] { display: none; }

/* accents "équipe" */
.eyebrow--team { color: var(--service); }
.grad--team {
  background: linear-gradient(100deg, var(--service), var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* accents "direction" */
.eyebrow--dir { color: var(--accent); }
.grad--dir {
  background: linear-gradient(100deg, var(--accent), #262626);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------- Scène "impacts" (côté direction) ---------- */
.scene--impacts { padding-top: 104px; }
.scene-inner-wide { width: 100%; max-width: 960px; margin: 0 auto; text-align: center; }
.impacts-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 0;
}
/* Bénéfices direction — thèmes + cartes Aujourd'hui / Demain */
#impacts { margin-top: 28px; }
.imp-theme { display: flex; align-items: center; gap: 9px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin: 24px 0 14px; }
.imp-theme::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--collab); flex-shrink: 0; }
.imp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; text-align: left; }
.imp { background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; box-shadow: var(--shadow); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.imp:hover { transform: translateY(-3px); box-shadow: 0 22px 46px -24px rgba(38, 38, 38, 0.34); }
.imp-head { margin-bottom: 16px; padding-left: 13px; border-left: 3px solid var(--collab); }
.imp-t { font-size: 1.06rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; color: var(--ink); }
.imp-flow { display: flex; flex-direction: column; gap: 8px; }
.imp-from, .imp-to { display: flex; gap: 9px; font-size: 0.9rem; line-height: 1.4; }
.imp-from { color: var(--ink-soft); }
.imp-from .k, .imp-to .k { flex-shrink: 0; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; width: 74px; padding-top: 2px; }
.imp-from .k { color: #636466; }
.imp-to { color: var(--ink); font-weight: 600; }
.imp-to .k { color: var(--collab); }
.imp-to b { font-weight: 800; color: var(--collab); }
.imp-sep { height: 1px; background: var(--line); margin: 11px 0; }

/* switcher : lisibilité sur petits écrans (3 onglets) */
@media (max-width: 920px) {
  .switcher-title { display: none; }
  .switcher-inner { justify-content: center; padding: 9px 14px; }
}
@media (max-width: 560px) {
  .switch-btn { padding: 7px 11px; font-size: 0.76rem; }
}
@media (max-width: 430px) {
  .switch-btn { padding: 6px 9px; font-size: 0.7rem; }
}
@media (max-width: 360px) {
  .switch { width: 100%; }
  .switch-btn { padding: 6px 6px; font-size: 0.64rem; }
}

/* ---------- Scène "constat" (chiffres) ---------- */
.scene--stat .scene-inner { text-align: center; }

/* ---------- Scènes ---------- */
.scene {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 90px 24px;
}
.scene-inner { width: 100%; max-width: 720px; margin: 0 auto; text-align: center; }
.scene-grid {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.text { text-align: left; }

/* ---------- Typo hero / titres ---------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--collab);
  margin: 0 0 16px;
}
h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
}
.grad {
  background: linear-gradient(100deg, var(--collab), var(--service));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead {
  font-size: clamp(1.02rem, 2.2vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 460px;
  margin: 0;
}

/* ---------- Illustrations ---------- */
.illus { width: 100%; }
.illus svg {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
  margin: 0 auto;
  overflow: visible;
}
.illus--center svg { max-width: 200px; margin-bottom: 26px; }

/* flottement doux du personnage */
.float { animation: float 5s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* le perso hoche la tête en rythme (casque sur les oreilles) */
.av-head { transform-box: fill-box; transform-origin: 50% 92%; }
.float .av-head { animation: vibe 1.7s ease-in-out infinite; }
@keyframes vibe { 0%, 100% { transform: rotate(-2.6deg); } 50% { transform: rotate(2.6deg); } }

/* clignement des yeux */
.eyes {
  transform-box: fill-box; transform-origin: center;
  animation: blink 5.2s ease-in-out infinite;
}
@keyframes blink {
  0%, 92%, 100% { transform: scaleY(1); }
  96%           { transform: scaleY(0.1); }
}

/* ---------- Scène temps ---------- */
.time-jump {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800; letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.time-sub { font-size: clamp(1.05rem, 3vw, 1.45rem); color: var(--ink-soft); margin: 0; }

/* ---------- Scène mail ---------- */
.mail {
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mail-head {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.mail-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 0.88rem; color: #fff;
  background: linear-gradient(135deg, var(--collab), var(--service));
  flex-shrink: 0;
}
.mail-from { display: flex; flex-direction: column; line-height: 1.3; }
.mail-from strong { font-size: 0.92rem; }
.mail-from span { font-size: 0.78rem; color: var(--ink-soft); }
.mail-badge {
  margin-left: auto; font-size: 0.7rem; font-weight: 700;
  color: var(--collab); border: 1px solid var(--collab);
  border-radius: 999px; padding: 3px 10px;
}
.mail-subject {
  font-size: 1.22rem; font-weight: 800; letter-spacing: -0.01em;
  margin: 0; padding: 20px 22px 4px;
}
.mail-body { padding: 0 22px 24px; }
.mail-body p { margin: 11px 0; color: var(--ink-soft); }
.mail-body strong { color: var(--ink); }
.mail-steps {
  margin: 14px 0;
  padding-left: 0;
  list-style: none;
  counter-reset: mailstep;
}
.mail-steps li {
  position: relative;
  padding: 8px 0 8px 38px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
}
.mail-steps li:last-child { border-bottom: 1px solid var(--line); }
.mail-steps li::before {
  counter-increment: mailstep;
  content: counter(mailstep);
  position: absolute;
  left: 0; top: 8px;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.78rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--collab), var(--service));
}
.mail-steps strong { color: var(--ink); }

/* ---------- Scènes étapes ---------- */
.step-scene .scene-grid { align-items: center; }
.step-scene.alt .illus { order: 2; }      /* alterne le côté de l'illustration */
.step-num {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 900; line-height: 0.9; letter-spacing: -0.04em;
  background: linear-gradient(160deg, var(--collab), var(--service));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.step-tag {
  display: inline-block; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.13em; font-weight: 700; color: var(--service); margin-bottom: 10px;
}
.step-body-title {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 14px;
}
.step-body p {
  font-size: clamp(1rem, 2.1vw, 1.16rem); color: var(--ink-soft); margin: 0 0 18px;
}
/* mini-timeline de sous-étapes */
.substeps {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  position: relative;
}
.substeps::before {
  content: "";
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--collab), var(--service));
  opacity: 0.35;
  border-radius: 2px;
}
.substep {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 0 0 18px 0;
}
.substep:last-child { padding-bottom: 0; }
.substep-dot {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 3px solid var(--service);
  box-shadow: 0 0 0 4px rgba(237, 0, 47, 0.10);
  transition: transform 0.4s cubic-bezier(.2,1.5,.4,1);
}
.substep.is-visible .substep-dot { animation: dotPop 0.5s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes dotPop { 0% { transform: scale(0); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.substep-body { display: flex; flex-direction: column; line-height: 1.45; }
.substep-body strong { font-size: 1rem; font-weight: 700; color: var(--ink); }
.substep-body span { font-size: 0.92rem; color: var(--ink-soft); margin-top: 2px; }

/* note "déjà créateur ?" */
.step-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 12px 16px;
  background: rgba(237, 0, 47, 0.05);
  border: 1px solid rgba(237, 0, 47, 0.18);
  border-radius: 12px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.step-note-ico {
  color: var(--service);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.4;
}

/* ---------- Scène spéciale "reprise par l'équipe" ---------- */
.scene--handover {
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(237, 0, 47, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(38, 38, 38, 0.04), rgba(237, 0, 47, 0.05));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.handover-tag {
  display: inline-block;
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em;
  font-weight: 800; margin-bottom: 12px;
  padding: 5px 14px; border-radius: 999px;
  color: #fff;
  background: linear-gradient(100deg, var(--collab), var(--service));
}
.succ-star { transform-box: fill-box; transform-origin: center; opacity: 0; transform: scale(0) rotate(-30deg); }
.illus.is-visible .succ-star { animation: starPop .6s cubic-bezier(.2,1.6,.4,1) .5s forwards, starFloat 3s ease-in-out 1.1s infinite; }
@keyframes starPop { to { opacity: 1; transform: scale(1) rotate(0deg); } }
@keyframes starFloat { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-4px) scale(1.05); } }
.handoff-arrow { transform-box: fill-box; opacity: 0; }
.illus.is-visible .handoff-arrow { animation: arrowIn .5s ease .9s forwards, arrowNudge 1.6s ease-in-out 1.4s infinite; }
@keyframes arrowIn { from { opacity: 0; transform: translateX(-8px);} to { opacity: 1; transform: none; } }
@keyframes arrowNudge { 0%,100% { transform: translateX(0);} 50% { transform: translateX(5px);} }

/* ---------- Scène clôture ---------- */
.scene--closing h2 {
  font-size: clamp(1.7rem, 4.6vw, 2.8rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.14; margin: 0 0 14px;
}
.scene--closing p { font-size: clamp(1.02rem, 2.3vw, 1.26rem); color: var(--ink-soft); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 22px 0; }
.site-footer .wrap { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--ink-soft); }
.muted { opacity: 0.6; }

/* ---------- Indice de scroll ---------- */
.scroll-cue { display: none; }
.scroll-cue svg { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(7px);} }

/* ---------- Révélation au scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.text .reveal:nth-child(2) { transition-delay: 0.08s; }
.text .reveal:nth-child(3) { transition-delay: 0.16s; }

/* =========================================================
   Animations des "props" — déclenchées quand l'illustration
   entre dans l'écran (.illus.is-visible .xxx)
   ========================================================= */

/* — Hero : le flow se construit — */
.flow-node { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.6); }
.illus.is-visible .flow-node { animation: pop .55s cubic-bezier(.2,1.4,.4,1) forwards; }
.illus.is-visible .flow-node.n1 { animation-delay: .25s; }
.illus.is-visible .flow-node.n2 { animation-delay: .75s; }
.illus.is-visible .flow-node.n3 { animation-delay: 1.25s; }
@keyframes pop { to { opacity: 1; transform: scale(1); } }
.flow-spark { opacity: 0; fill: var(--collab); }
.illus.is-visible .flow-spark { animation: spark 3s ease-in-out 1.6s infinite; }
@keyframes spark {
  0% { transform: translateX(0); opacity: 0; }
  12% { opacity: 1; } 48% { transform: translateX(58px); }
  52% { opacity: 1; } 88% { transform: translateX(116px); opacity: 1; }
  100% { transform: translateX(116px); opacity: 0; }
}
.hand { transform-box: fill-box; transform-origin: center; }
.illus.is-visible .hand-l { animation: tap .9s ease-in-out infinite; }
.illus.is-visible .hand-r { animation: tap .9s ease-in-out .45s infinite; }
@keyframes tap { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-3px);} }

/* doigts qui pianotent (cascade) */
.key { transform-box: fill-box; }
.illus.is-visible .key { animation: keytap .5s ease-in-out infinite; }
.illus.is-visible .key.k0 { animation-delay: 0s; }
.illus.is-visible .key.k1 { animation-delay: .12s; }
.illus.is-visible .key.k2 { animation-delay: .24s; }
.illus.is-visible .key.k3 { animation-delay: .30s; }
.illus.is-visible .key.k4 { animation-delay: .18s; }
.illus.is-visible .key.k5 { animation-delay: .06s; }
@keyframes keytap { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(2px); } }

/* — Mail : il lit sur son téléphone — */
.rl { opacity: 0; }
.illus.is-visible .rl { animation: rlIn .4s ease forwards; }
.illus.is-visible .rl0 { animation-delay: .5s; }
.illus.is-visible .rl1 { animation-delay: .68s; }
.illus.is-visible .rl2 { animation-delay: .86s; }
.illus.is-visible .rl3 { animation-delay: 1.04s; }
.illus.is-visible .rl4 { animation-delay: 1.22s; }
.illus.is-visible .rl5 { animation-delay: 1.40s; }
@keyframes rlIn { from { opacity: 0; } to { opacity: 1; } }
.readhi { opacity: 0; }
.illus.is-visible .readhi { animation: readScan 3.4s ease-in-out 1.7s infinite; }
@keyframes readScan {
  0%   { opacity: 0; transform: translateY(0); }
  8%   { opacity: 1; }
  88%  { opacity: 1; transform: translateY(70px); }
  100% { opacity: 0; transform: translateY(70px); }
}

/* — Plateforme : le curseur navigue d'une section à l'autre — */
.cursor { transform: translate(150px, 120px); }
.illus.is-visible .cursor { animation: cursorMove 6.5s cubic-bezier(.45,0,.5,1) .8s infinite; }
@keyframes cursorMove {
  0%   { transform: translate(150px, 120px); }
  16%  { transform: translate(80px, 86px); }    /* Actualités */
  30%  { transform: translate(80px, 86px); }
  46%  { transform: translate(96px, 188px); }   /* Forum */
  60%  { transform: translate(96px, 188px); }
  76%  { transform: translate(250px, 100px); }  /* Mes flux */
  90%  { transform: translate(293px, 226px); }  /* À retravailler (clic) */
  100% { transform: translate(150px, 120px); }
}
.click-ring { transform-box: fill-box; transform-origin: center; opacity: 0; }
.illus.is-visible .click-ring { animation: clickPulse 6.5s ease-out .8s infinite; }
@keyframes clickPulse {
  0%, 86% { opacity: 0; transform: scale(.3); }
  90%     { opacity: .9; transform: scale(.6); }
  98%     { opacity: 0; transform: scale(1.9); }
  100%    { opacity: 0; transform: scale(1.9); }
}
/* badges & carte d'alerte qui respirent */
.news-badge, .forum-new, .fix-badge { transform-box: fill-box; transform-origin: center; }
.illus.is-visible .news-badge { animation: badgePulse 2.4s ease-in-out infinite; }
.illus.is-visible .forum-new { animation: badgePulse 2.4s ease-in-out .6s infinite; }
.illus.is-visible .fix-badge { animation: badgePulse 2s ease-in-out 1s infinite; }
@keyframes badgePulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.12); opacity: .85; } }
.attn-ring { opacity: 0; }
.illus.is-visible .attn-ring { animation: attnPulse 2.2s ease-in-out infinite; }
@keyframes attnPulse { 0%,100% { opacity: 0; } 50% { opacity: 1; } }

/* — Mail : l'enveloppe arrive vers le personnage — */
.envelope { opacity: 0; transform: translate(70px, -10px) scale(.7); }
.illus.is-visible .envelope { animation: mailIn 1s cubic-bezier(.2,.8,.2,1) .3s forwards; }
@keyframes mailIn { to { opacity: 1; transform: translate(0,0) scale(1); } }
.notif { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0); }
.illus.is-visible .notif { animation: notifPop .5s cubic-bezier(.2,1.5,.4,1) 1.2s forwards, pulse 1.6s ease-in-out 1.7s infinite; }
@keyframes notifPop { to { opacity: 1; transform: scale(1); } }
@keyframes pulse { 0%,100% { filter: none; } 50% { filter: brightness(1.12); } }
.bubble { opacity: 0; transform-box: fill-box; transform-origin: bottom left; transform: scale(0); }
.illus.is-visible .bubble { animation: notifPop .45s cubic-bezier(.2,1.5,.4,1) 1.5s forwards; }

/* — Étape 1 : le tampon de validation tombe — */
.stamp { opacity: 0; transform-box: fill-box; transform-origin: center; transform: translateY(-40px) scale(1.4) rotate(-12deg); }
.illus.is-visible .stamp { animation: stampDown .6s cubic-bezier(.3,1.5,.5,1) .5s forwards; }
@keyframes stampDown { to { opacity: 1; transform: translateY(0) scale(1) rotate(-12deg); } }

/* — Étape 2 : la toque tombe sur la tête + la note arrive — */
.cap { opacity: 0; transform: translateY(-50px); }
.illus.is-visible .cap { animation: capDrop .65s cubic-bezier(.3,1.4,.5,1) .4s forwards; }
@keyframes capDrop { to { opacity: 1; transform: translateY(0); } }
.grade { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0) translateX(20px); }
.illus.is-visible .grade { animation: notifPop .55s cubic-bezier(.2,1.5,.4,1) 1s forwards; }

/* — Étape 3 : la communauté apparaît et se connecte — */
.peer { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.4); }
.illus.is-visible .peer.p1 { animation: pop .5s cubic-bezier(.2,1.4,.4,1) .4s forwards; }
.illus.is-visible .peer.p2 { animation: pop .5s cubic-bezier(.2,1.4,.4,1) .7s forwards; }
.link-line { stroke-dasharray: 80; stroke-dashoffset: 80; }
.illus.is-visible .link-line { animation: draw .6s ease forwards 1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* — Étape 4 : la loupe scanne + le bouclier valide — */
.magnifier { transform-box: fill-box; transform-origin: center; }
.illus.is-visible .magnifier { animation: scan 3.4s ease-in-out 1s infinite; }
@keyframes scan {
  0%,100% { transform: translate(-26px, 6px); }
  50%     { transform: translate(26px, -6px); }
}
.shieldcheck { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0); }
.illus.is-visible .shieldcheck { animation: notifPop .55s cubic-bezier(.2,1.5,.4,1) .6s forwards; }

/* — Plateforme : la jauge se remplit + les lignes arrivent — */
.gauge { stroke-dasharray: 163; stroke-dashoffset: 163; }
.illus.is-visible .gauge { animation: gaugeFill 1.3s cubic-bezier(.3,.8,.3,1) 0.4s forwards; }
@keyframes gaugeFill { to { stroke-dashoffset: 14; } }
.prow { opacity: 0; transform-box: fill-box; transform: translateX(-8px); }
.illus.is-visible .prow.r1 { animation: rowIn .45s ease .9s forwards; }
.illus.is-visible .prow.r2 { animation: rowIn .45s ease 1.05s forwards; }
.illus.is-visible .prow.r3 { animation: rowIn .45s ease 1.2s forwards; }
@keyframes rowIn { to { opacity: 1; transform: none; } }

/* — Temps : l'aiguille tourne — */
.clock-hand { transform-box: view-box; transform-origin: 60px 60px; }
.illus.is-visible .clock-hand { animation: tick 2.4s steps(3) infinite; }
@keyframes tick { to { transform: rotate(360deg); } }

/* — Boost : les barres montent + la flèche se trace — */
.bar { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); }
.illus.is-visible .bar { animation: barGrow .6s cubic-bezier(.3,1.2,.4,1) forwards; }
.illus.is-visible .bar.b0 { animation-delay: .25s; }
.illus.is-visible .bar.b1 { animation-delay: .40s; }
.illus.is-visible .bar.b2 { animation-delay: .55s; }
.illus.is-visible .bar.b3 { animation-delay: .70s; }
@keyframes barGrow { to { transform: scaleY(1); } }
.boost-arrow { stroke-dasharray: 240; stroke-dashoffset: 240; }
.illus.is-visible .boost-arrow { animation: draw .8s ease .85s forwards; }

/* — Clôture : la coche finale — */
.illus.is-visible .stamp.final { animation: stampDown .6s cubic-bezier(.3,1.5,.5,1) .4s forwards; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .scene-grid { grid-template-columns: 1fr; gap: 30px; }
  .text { text-align: center; }
  .lead { margin: 0 auto; }
  .step-scene .illus, .step-scene.alt .illus { order: -1; }   /* illustration toujours au-dessus */
  .illus svg { max-width: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  [class*="flow-node"], .envelope, .notif, .bubble, .stamp, .cap, .grade, .peer,
  .shieldcheck, .rl, .key, .prow, .succ-star, .handoff-arrow, .bar { opacity: 1; transform: none; }
  .link-line, .gauge, .boost-arrow { stroke-dashoffset: 0; }
  .readhi, .click-ring, .cursor { opacity: 0; }
}


/* =========================================================
   PREZ (intro) — couverture, sommaire, parties, KPI, ROI, timeline
   ========================================================= */

/* couverture */
.scene--cover { text-align: center; }
.cover-title { font-size: clamp(2.8rem, 8vw, 5.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; margin: 0 0 22px; }
.cover-meta { margin-top: 26px; font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.02em; }

/* sommaire */
.scene--toc .scene-inner-wide { text-align: center; }
.toc-list { list-style: none; margin: 34px auto 0; padding: 0; max-width: 760px; text-align: left; display: flex; flex-direction: column; gap: 12px; }
.toc-item { display: flex; align-items: center; gap: 22px; background: var(--bg-card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 14px; padding: 18px 24px; }
.toc-num { font-size: 1.7rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; flex-shrink: 0; min-width: 42px; }
.toc-item div { display: flex; flex-direction: column; }
.toc-item strong { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.toc-item span { font-size: 0.9rem; color: var(--ink-soft); margin-top: 2px; }

/* intro de partie (divider) */
.scene--part { text-align: center; }
.part-badge { display: inline-block; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: #fff; background: var(--collab); border-radius: 999px; padding: 7px 18px; margin-bottom: 22px; }
.part-title { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; margin: 0 0 20px; }

/* KPI (bilan chiffré) */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 34px 0 26px; }
.kpi { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.kpi-num { font-size: clamp(1.9rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; background: linear-gradient(160deg, var(--collab), var(--service)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.kpi-lbl { font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); }
@media (max-width: 680px) { .kpi-row { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

/* ROI visual */
.roi-visual { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 32px; text-align: center; }
.roi-ratio { font-size: clamp(3.4rem, 9vw, 5.4rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1; color: var(--collab); font-variant-numeric: tabular-nums; }
.roi-ratio-lbl { font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); margin-top: 6px; }
.roi-util { margin-top: 28px; text-align: left; }
.roi-util-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 8px; }
.roi-util-top strong { font-size: 1.1rem; color: var(--ink); font-weight: 800; }
.roi-bar { height: 9px; border-radius: 5px; background: #ececed; overflow: hidden; }
.roi-bar-fill { display: block; height: 100%; width: 0; border-radius: 5px; background: var(--green); transition: width 1.3s cubic-bezier(.22,.61,.36,1); }
.roi-visual.is-visible .roi-bar-fill { width: 74%; }

/* timeline (service structuré) */
.scene--timeline .scene-inner-wide { text-align: center; }
.timeline-lead { max-width: 640px; margin: 12px auto 0; color: var(--ink-soft); font-size: 1.02rem; }

/* keyframes réutilisé par .vcar-track (carrousel verbatims) */
@keyframes friezeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================
   PREZ — Parties 2 & 3 (composants)
   ========================================================= */
.soft { color: var(--ink-soft); }

/* chips sous les intros de partie */
.part-chips { display: inline-flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.part-chip { display: inline-flex; align-items: center; gap: 9px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px 9px 14px; font-size: 0.84rem; font-weight: 600; color: var(--ink); box-shadow: 0 5px 16px -8px rgba(38, 38, 38, 0.16); transition: transform .2s ease, box-shadow .2s ease; }
.part-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--collab); flex-shrink: 0; }
.part-chip:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -8px rgba(38, 38, 38, 0.22); }

/* médaillon "présenté par" */
.presenter { display: inline-flex; align-items: center; gap: 11px; margin-top: 24px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 18px 7px 7px; box-shadow: 0 5px 16px -8px rgba(38, 38, 38, 0.16); }
.presenter-avs { display: inline-flex; }
.presenter-av { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #ab192d, var(--collab)); color: #fff; font-weight: 800; font-size: 0.74rem; display: grid; place-items: center; flex-shrink: 0; }
.presenter-av--2 { margin-left: -12px; border: 2px solid var(--bg-card); }
.presenter-txt { font-size: 0.9rem; color: var(--ink-soft); font-weight: 600; }
.presenter-txt strong { color: var(--ink); font-weight: 800; }

/* 3 sources (méthodo) */
.src-grid { display: flex; flex-direction: column; gap: 14px; }
.src-card { background: var(--bg-card); border: 1px solid var(--line); border-left: 3px solid var(--collab); border-radius: 14px; padding: 16px 18px; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; box-shadow: var(--shadow); }
.src-no { grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; background: #fcf4f2; color: var(--collab); font-weight: 900; display: grid; place-items: center; }
.src-card strong { font-size: 1rem; font-weight: 700; color: var(--ink); }
.src-card span { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.45; }
.src-card b { color: var(--ink); }

/* scores de perception */
.score-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 34px 0 22px; text-align: left; }
@media (max-width: 760px) { .score-grid { grid-template-columns: 1fr; } }
.score-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); }
.score-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.score-top > span:first-child { font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
.score-val { font-size: 1.6rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.score-val i { font-size: 0.8rem; font-style: normal; color: var(--ink-soft); font-weight: 600; }
.scbar { height: 8px; border-radius: 5px; background: #ececed; overflow: hidden; }
.scbar-fill { display: block; height: 100%; width: 0; border-radius: 5px; background: var(--collab); transition: width 1.1s cubic-bezier(.22,.61,.36,1); }
.score-card.is-visible .scbar-fill { width: var(--w); }

/* échelle (ladder) hypothèse 1 */
.ladder { display: flex; align-items: flex-end; gap: 14px; height: 300px; }
.ladder-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.ladder-bar { width: 100%; height: var(--h); border-radius: 12px 12px 0 0; background: linear-gradient(180deg, #f9aebb, var(--collab)); transform: scaleY(0); transform-origin: bottom; transition: transform .7s cubic-bezier(.22,.61,.36,1); }
.ladder.is-visible .ladder-col:nth-child(1) .ladder-bar { transition-delay: .05s; }
.ladder.is-visible .ladder-col:nth-child(2) .ladder-bar { transition-delay: .18s; }
.ladder.is-visible .ladder-col:nth-child(3) .ladder-bar { transition-delay: .31s; }
.ladder.is-visible .ladder-col:nth-child(4) .ladder-bar { transition-delay: .44s; }
.ladder.is-visible .ladder-bar { transform: scaleY(1); }
.lb-lvl { margin-top: 12px; font-size: 0.82rem; font-weight: 800; color: var(--ink); text-align: center; }
.lb-tag { font-size: 0.72rem; color: var(--ink-soft); text-align: center; margin-top: 2px; }

/* 4 gains (conclusion P2) */
.gains-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.gain { background: var(--bg-card); border: 1px solid var(--line); border-top: 3px solid var(--collab); border-radius: 14px; padding: 18px 22px; font-size: 1rem; font-weight: 700; color: var(--ink); box-shadow: var(--shadow); }

/* carrousel verbatims */
.vcar { position: relative; width: 100%; max-width: 1240px; margin: 30px auto 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.vcar-track { display: flex; gap: 18px; width: max-content; padding: 6px 12px; animation: friezeScroll 70s linear infinite; }
.vcar:hover .vcar-track { animation-play-state: paused; }
.vbq { width: 344px; min-height: 256px; flex-shrink: 0; background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; display: flex; flex-direction: column; box-shadow: var(--shadow); position: relative; align-self: stretch; }
.vbq::before { content: "\201C"; position: absolute; top: 2px; right: 18px; font-family: Georgia, serif; font-size: 64px; color: #f6dee4; line-height: 1; }
.vbq-q { flex: 1 1 auto; font-size: 0.96rem; color: var(--ink); line-height: 1.55; font-style: italic; position: relative; z-index: 1; }
.vbq-meta { margin-top: auto; height: 70px; box-sizing: border-box; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.vbq-av { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #ab192d, var(--collab)); color: #fff; font-weight: 800; font-size: 0.82rem; display: grid; place-items: center; flex-shrink: 0; }
.vbq-id { display: flex; flex-direction: column; line-height: 1.25; }
.vbq-id strong { font-size: 0.82rem; color: var(--ink); }
.vbq-id span { font-size: 0.76rem; color: var(--ink-soft); }
.vbq-lvl { margin-left: auto; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 9px; border-radius: 7px; }
.vbq-lvl.l-agent { background: #fcf4f2; color: var(--collab); }
.vbq-lvl.l-sup { background: #f1f1f1; color: var(--ink-soft); }
.vbq-lvl.l-resp { background: #fcf4f2; color: #ab192d; }
.vbq-lvl.l-dir { background: var(--ink); color: #fff; }

/* boîte "donc" (statut du service) */
.donc-box { background: linear-gradient(135deg, #1a1a1a, var(--ink)); border-radius: var(--radius); padding: 30px 30px; color: #fff; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.donc-l { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--collab); margin-bottom: 14px; }
.donc-box p { font-size: 1.3rem; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; }
.donc-box strong { color: #ed002f; }

/* ce qui a été tenté */
.tried-grid { display: flex; gap: 18px; flex-wrap: wrap; margin: 34px 0 22px; }
.tried-card { flex: 1; min-width: 240px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; text-align: left; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.tried-ic { width: 44px; height: 44px; border-radius: 12px; background: #fcf4f2; color: var(--collab); font-size: 1.4rem; display: grid; place-items: center; margin-bottom: 4px; }
.tried-card strong { font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.tried-card > span { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.5; }
.tried-res { align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 700; padding: 8px 16px; border-radius: 999px; background: #fcf4f2; color: var(--collab); border: 1px solid #f6c6d3; }
.tried-res::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--collab); flex-shrink: 0; }

/* la demande explose */
.dmd-grid { display: flex; gap: 16px; flex-wrap: wrap; margin: 0 0 24px; }
.dmd-card { flex: 1; min-width: 220px; background: var(--bg-card); border: 1px solid var(--line); border-top: 4px solid var(--collab); border-radius: 16px; padding: 22px 24px; text-align: left; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.dmd-lbl { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.dmd-val { font-size: clamp(2.4rem, 6vw, 3.4rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.dmd-evo { display: flex; align-items: center; gap: 12px; margin-top: 2px; }
.dmd-from { font-size: 0.86rem; color: var(--ink-soft); font-weight: 700; }
.dmd-mult { margin-left: auto; background: var(--rosepale); color: var(--collab); font-size: 0.92rem; font-weight: 900; border-radius: 9px; padding: 5px 12px; }

/* titre de partie plus petit + question box */
.part-title--sm { font-size: clamp(1.9rem, 5vw, 3.2rem); max-width: 880px; margin-left: auto; margin-right: auto; }
.qbox { margin: 32px auto 0; max-width: 720px; background: var(--bg-card); border: 1px solid var(--line); border-left: 4px solid var(--collab); border-radius: 14px; padding: 24px 28px; box-shadow: var(--shadow); text-align: left; }
.qbox-l { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--collab); }
.qbox-t { font-size: clamp(1.2rem, 3vw, 1.7rem); font-weight: 800; color: var(--ink); line-height: 1.3; margin-top: 10px; letter-spacing: -0.01em; }
.qbox-t2 { font-size: clamp(1rem, 2.3vw, 1.25rem); font-weight: 700; color: var(--ink-soft); line-height: 1.35; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); letter-spacing: -0.01em; }

/* =========================================================
   Correctifs d'alignement — scènes centrées
   ========================================================= */
.scene--cover .lead,
.scene--part .lead,
.scene--toc .lead,
.scene--closing .lead,
.scene--stat .lead,
.scene--timeline .lead {
  margin-left: auto;
  margin-right: auto;
}
/* sécurité : tout contenu d'une scène centrée reste centré */
.scene--cover .scene-inner,
.scene--part .scene-inner,
.scene--closing .scene-inner { text-align: center; }
.scene--cover .scene-inner > *,
.scene--part .scene-inner > * { margin-left: auto; margin-right: auto; }

/* --- chiffres : unité collée au nombre --- */
.kpi-num { white-space: nowrap; }

/* --- bilan : deux lignes (RPA / France hors RPA) --- */
.bilan-lines { display: flex; flex-direction: column; gap: 16px; margin: 32px 0 22px; }
.bilan-line { background: var(--bg-card); border: 1px solid var(--line); border-left: 3px solid var(--collab); border-radius: 16px; padding: 20px 26px; box-shadow: var(--shadow); display: grid; grid-template-columns: 210px 1fr; gap: 26px; align-items: center; text-align: left; }
.bilan-line.alt { border-left-color: var(--ink); }
.bilan-line-id strong { display: block; font-size: 0.98rem; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; line-height: 1.25; }
.bilan-line-id span { font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
.kpi-row--sm { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0; }
.kpi-row--sm .kpi { align-items: flex-start; }
.kpi-row--sm .kpi-num { font-size: clamp(1.25rem, 2.7vw, 1.95rem); }
.kpi-row--sm .kpi-lbl { font-size: 0.78rem; }
@media (max-width: 720px) {
  .bilan-line { grid-template-columns: 1fr; gap: 14px; }
  .kpi-row--sm { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

/* --- méthodo : 3 sources en ligne + tableau des entretiens --- */
.src-grid--row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: left; margin-top: 30px; }
@media (max-width: 760px) { .src-grid--row { grid-template-columns: 1fr; } }
.itv-h { margin-top: 34px; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.itv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); gap: 12px; margin-top: 16px; text-align: left; }
.itv-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 3px; }
.itv-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.itv-name { font-size: 0.92rem; font-weight: 800; color: var(--ink); }
.itv-role { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.35; }
.itv-tag { flex-shrink: 0; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; }
.itv-tag.l-agent { background: #fcf4f2; color: var(--collab); }
.itv-tag.l-sup { background: #f1f1f1; color: var(--ink-soft); }
.itv-tag.l-resp { background: #fcf4f2; color: #ab192d; }
.itv-tag.l-dir { background: var(--ink); color: #fff; }

/* =========================================================
   Timeline pas-à-pas (carrousel "service structuré")
   ========================================================= */
.tlc { width: 100%; max-width: 1100px; margin: 34px auto 0; }
.tlc-stage { overflow: hidden; padding: 14px 0; }
.tlc-track { display: flex; gap: 22px; padding: 0 calc(50% - 170px); transition: transform .55s cubic-bezier(.22,.61,.36,1); }
.tlc-card { width: 340px; flex-shrink: 0; min-height: 224px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; opacity: .4; transform: scale(.92); transition: opacity .45s, transform .45s, box-shadow .45s, border-color .45s; box-shadow: var(--shadow); }
.tlc-card.act { opacity: 1; transform: scale(1); border-color: #ffd2dc; box-shadow: var(--shadow-lg); }
.tlc-year { align-self: flex-start; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; color: #fff; background: var(--collab); border-radius: 999px; padding: 4px 12px; }
.tlc-date { font-size: 1.4rem; font-weight: 900; color: var(--ink); margin-top: 16px; letter-spacing: -0.02em; }
.tlc-name { font-size: 1.05rem; font-weight: 800; color: var(--collab); margin-top: 6px; line-height: 1.25; }
.tlc-desc { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.55; margin-top: 12px; }
.tlc-card.future { border-style: dashed; border-color: var(--collab); background: #fcf4f2; }
.tlc-card.future .tlc-year { background: transparent; color: var(--collab); border: 1px solid var(--collab); }

.tlc-rail { position: relative; height: 30px; display: flex; align-items: center; margin: 16px 44px 0; }
.tlc-rail-line { position: absolute; left: 0; right: 0; height: 3px; background: var(--line); border-radius: 2px; }
.tlc-rail-prog { position: absolute; left: 0; height: 3px; background: var(--collab); border-radius: 2px; width: 0; transition: width .55s cubic-bezier(.22,.61,.36,1); }
.tlc-ticks { position: relative; width: 100%; display: flex; justify-content: space-between; }
.tlc-tick { width: 14px; height: 14px; border-radius: 50%; background: var(--bg-card); border: 2.5px solid #d2d2d6; cursor: pointer; padding: 0; transition: .25s; position: relative; z-index: 1; }
.tlc-tick:hover { border-color: var(--collab); transform: scale(1.2); }
.tlc-tick.done { border-color: var(--collab); background: #ffb9c7; }
.tlc-tick.act { border-color: var(--collab); background: var(--collab); transform: scale(1.35); box-shadow: 0 0 0 5px rgba(237, 0, 47, .14); }

.tlc-ctrl { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.tlc-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; border: none; border-radius: 999px; padding: 11px 22px; font-family: inherit; font-size: 0.86rem; font-weight: 700; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.tlc-btn:hover { background: var(--collab); }
.tlc-btn:disabled { opacity: .35; cursor: not-allowed; background: #cfcfd4; }
.tlc-btn.ghost { background: var(--bg-card); color: var(--ink); border: 1.5px solid var(--line); }
.tlc-btn.ghost:hover { border-color: var(--collab); color: var(--collab); background: var(--bg-card); }
.tlc-counter { font-size: 0.92rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 72px; text-align: center; }
.tlc-counter .muted { color: var(--ink-soft); }

@media (max-width: 760px) {
  .tlc-track { padding: 0 calc(50% - 140px); gap: 16px; }
  .tlc-card { width: 280px; min-height: 204px; padding: 22px; }
}

/* carte-stat hypothèse 3 */
.hsc { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 30px; text-align: center; }
.hsc-big { font-size: clamp(3rem, 8vw, 4.6rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1; color: var(--collab); font-variant-numeric: tabular-nums; }
.hsc-sub { font-size: 0.95rem; color: var(--ink-soft); margin-top: 6px; }
.hsc-vs { font-size: 1rem; color: var(--ink); margin-top: 14px; font-weight: 600; }
.hsc-vs strong { color: var(--collab); font-weight: 800; }
.hsc-note { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.5; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); text-align: left; }

/* comparaison groupe — tableau */
.cmp-table { width: 100%; max-width: 880px; margin: 32px auto 0; background: var(--bg-card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); text-align: left; }
.cmp-table table { width: 100%; border-collapse: collapse; }
.cmp-table thead th { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); text-align: right; padding: 14px 22px; background: #fafafb; border-bottom: 1px solid var(--line); }
.cmp-table thead th:first-child { text-align: left; }
.cmp-table tbody td { padding: 12px 22px; text-align: right; font-variant-numeric: tabular-nums; border-bottom: 1px solid #f0f0f2; font-weight: 600; color: var(--ink-soft); }
.cmp-table tbody td:first-child { text-align: left; font-weight: 700; color: var(--ink); }
.cmp-table tbody tr:last-child td { border-bottom: none; }
.cmp-table tbody tr:hover td { background: #fafafb; }
.cmp-table .cmp-sol { font-weight: 800; color: var(--ink); }
.cmp-table tr.fr td { background: #fcf4f2; font-weight: 800; }
.cmp-table tr.fr:hover td { background: #fbe9ec; }
.cmp-table tr.fr td:first-child { color: var(--collab); box-shadow: inset 4px 0 0 var(--collab); }
.cmp-table tr.fr .cmp-sol, .cmp-table tr.fr .cmp-save { color: var(--collab); }
.cmp-note { max-width: 760px; margin-left: auto; margin-right: auto; }
@media (max-width: 560px) { .cmp-table thead th, .cmp-table tbody td { padding: 10px 12px; font-size: 0.82rem; } }

/* =========================================================
   Coûts · Bénéfices · Risques (Partie 4)
   ========================================================= */
.cbr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 34px 0 16px; text-align: left; }
@media (max-width: 860px) { .cbr-grid { grid-template-columns: 1fr; } }
.cbr-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cbr-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.cbr-card.cost::before { background: var(--ink-soft); }
.cbr-card.ben::before { background: var(--green); }
.cbr-card.risk::before { background: var(--collab); }
.cbr-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.cbr-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.cbr-ic svg { width: 24px; height: 24px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cbr-card.cost .cbr-ic { background: #f1f1f1; }
.cbr-card.cost .cbr-ic svg { stroke: var(--ink-soft); }
.cbr-card.ben .cbr-ic { background: #eef6e6; }
.cbr-card.ben .cbr-ic svg { stroke: var(--green); }
.cbr-card.risk .cbr-ic { background: #fcf4f2; }
.cbr-card.risk .cbr-ic svg { stroke: var(--collab); }
.cbr-k { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; display: block; }
.cbr-card.cost .cbr-k { color: var(--ink-soft); }
.cbr-card.ben .cbr-k { color: var(--green); }
.cbr-card.risk .cbr-k { color: var(--collab); }
.cbr-card strong { font-size: 1.15rem; font-weight: 900; color: var(--ink); letter-spacing: -0.01em; display: block; margin-top: 2px; }
.cbr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.cbr-list li { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.5; padding-left: 18px; position: relative; }
.cbr-list li::before { content: "\203A"; position: absolute; left: 0; font-weight: 900; }
.cbr-card.cost .cbr-list li::before { color: var(--ink-soft); }
.cbr-card.ben .cbr-list li::before { color: var(--green); }
.cbr-card.risk .cbr-list li::before { color: var(--collab); }
.cbr-list b { color: var(--ink); font-weight: 700; }
.cbr-banner { display: flex; align-items: center; gap: 22px; background: linear-gradient(135deg, #1a1a1a, var(--ink)); border-radius: 16px; padding: 18px 28px; color: #fff; text-align: left; margin-top: 16px; }
.cbr-banner-l { flex-shrink: 0; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--collab); }
.cbr-banner p { font-size: 1.15rem; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; }
.cbr-banner strong { color: #ed002f; }
@media (max-width: 640px) { .cbr-banner { flex-direction: column; align-items: flex-start; gap: 10px; } }

/* =========================================================
   Benchmark — mur compact (Partie 4)
   ========================================================= */
.bench-band { display: inline-flex; align-items: center; gap: 9px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); margin: 26px 0 14px; }
.bench-band::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--collab); flex-shrink: 0; }

.bench-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(218px, 1fr)); gap: 12px; text-align: left; }
@media (max-width: 520px) { .bench-wall { grid-template-columns: 1fr; } }

.bench-tile { background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 13px; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.bench-tile:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -22px rgba(38, 38, 38, 0.42); }

.bt-head { display: flex; align-items: center; gap: 9px; }
.bt-logo { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 900; font-size: 0.66rem; display: grid; place-items: center; flex-shrink: 0; }
.bt-name { font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.bt-sector { font-size: 0.7rem; color: var(--ink-soft); margin-top: 7px; line-height: 1.35; }

.bt-hero { margin-top: 13px; }
.bt-hero .v { display: block; font-size: 1.4rem; font-weight: 900; letter-spacing: -0.02em; color: var(--ink); line-height: 1.05; }
.bt-hero .l { display: block; font-size: 0.72rem; color: var(--ink-soft); margin-top: 3px; }

.bt-extra { font-size: 0.79rem; color: #45454a; margin-top: 9px; line-height: 1.45; }
.bt-extra strong { font-weight: 700; color: var(--ink); }

.bt-src { margin-top: auto; padding-top: 11px; font-size: 0.68rem; color: #636466; }
.bt-src a { color: #636466; text-decoration: underline; text-underline-offset: 2px; }

.bench-wall.met .bench-tile { border-left: 3px solid var(--collab); }
.bench-wall.met .bt-hero .v { color: var(--collab); font-size: 1.1rem; }

/* =========================================================
   Tremplin — la création se fait déjà, ouvrir sous contrôle (Partie 4)
   ========================================================= */
.trm-fact { display: flex; align-items: center; gap: 26px; text-align: left; background: var(--bg-card); border: 1px solid var(--line); border-left: 5px solid var(--collab); border-radius: 18px; padding: 22px 28px; margin-top: 30px; box-shadow: var(--shadow); flex-wrap: wrap; }
.trm-num { font-size: 3rem; font-weight: 900; letter-spacing: -0.03em; color: var(--collab); line-height: 0.95; }
.trm-txt { font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.trm-txt span { display: block; font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); margin-top: 4px; }
.trm-tags { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.trm-tag { font-size: 0.76rem; font-weight: 700; color: var(--collab); background: var(--rosepale); border: 1px solid rgba(237, 0, 47, 0.18); border-radius: 999px; padding: 6px 13px; white-space: nowrap; }

.trm-dead { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; text-align: left; }
@media (max-width: 640px) { .trm-dead { grid-template-columns: 1fr; } }
.trm-dead-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; box-shadow: var(--shadow); }
.trm-dead-k { display: inline-flex; align-items: center; gap: 8px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.trm-dead-k::before { content: "\2715"; color: var(--collab); font-weight: 900; }
.trm-dead-t { font-size: 1.12rem; font-weight: 800; margin: 9px 0 6px; color: var(--ink); }
.trm-dead-d { font-size: 0.92rem; color: #45454a; line-height: 1.5; }

.trm-pivot { margin-top: 24px; text-align: left; background: linear-gradient(135deg, #1a1a1a, var(--ink)); color: #fff; border-radius: 18px; padding: 30px 34px; box-shadow: var(--shadow-lg); }
.trm-pivot p { font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 700; line-height: 1.4; letter-spacing: -0.01em; }
.trm-strike { color: #9a9aa0; }
.trm-hit { color: #fff; }
.trm-hit b { color: var(--collab); font-weight: 900; }

.trm-land { display: inline-flex; align-items: baseline; gap: 12px; margin-top: 20px; text-align: left; background: var(--rosepale); border: 1px solid rgba(237, 0, 47, 0.18); border-left: 5px solid var(--collab); border-radius: 14px; padding: 16px 24px; }
.trm-land-k { flex-shrink: 0; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--collab); }
.trm-land-t { font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.trm-land-t b { color: var(--collab); }
@media (max-width: 560px) { .trm-land { flex-direction: column; gap: 6px; } }

/* =========================================================
   Comment on garde le contrôle (Partie 4)
   ========================================================= */
.ctl-sub { font-size: 1rem; color: var(--ink-soft); max-width: 680px; margin: 8px auto 0; }
.ctl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 14px; margin-top: 28px; text-align: left; }
.ctl-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.ctl-n { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: #fff; font-weight: 900; font-size: 0.85rem; display: grid; place-items: center; }
.ctl-t { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; margin: 13px 0 7px; line-height: 1.2; color: var(--ink); }
.ctl-d { font-size: 0.9rem; color: #45454a; line-height: 1.5; }
.ctl-d b { color: var(--ink); font-weight: 700; }
.ctl-honest { margin-top: 16px; background: var(--rosepale); border: 1px solid rgba(237, 0, 47, 0.18); border-left: 5px solid var(--collab); border-radius: 14px; padding: 18px 24px; text-align: left; }
.ctl-honest-k { display: block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--collab); }
.ctl-honest-t { font-size: 0.98rem; color: var(--ink); line-height: 1.55; margin-top: 6px; }
.ctl-honest-t b { font-weight: 800; }

/* =========================================================
   Panel décision final (Notre position + La validation)
   ========================================================= */
.val-firsts { margin-top: 26px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 18px; padding: 24px 30px; text-align: left; box-shadow: var(--shadow); }
.val-firsts-h { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 16px; }
.val-firsts ul { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.val-firsts li { display: flex; gap: 13px; font-size: 1rem; line-height: 1.5; color: #3a3a3e; }
.val-ck { flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px; background: var(--rosepale); border: 1px solid rgba(237, 0, 47, 0.18); color: var(--collab); font-weight: 900; font-size: 0.8rem; display: grid; place-items: center; margin-top: 1px; }
.val-firsts li b { color: var(--ink); font-weight: 800; }

.val-ask { margin-top: 14px; background: linear-gradient(135deg, #1a1a1a, var(--ink)); color: #fff; border-radius: 20px; padding: 30px 36px; text-align: left; box-shadow: var(--shadow-lg); }
.val-ask-k { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--collab); }
.val-ask-t { font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 800; line-height: 1.34; letter-spacing: -0.01em; margin-top: 10px; }
.val-ask-t b { color: #fff; border-bottom: 3px solid var(--collab); padding-bottom: 1px; }

.val-note { margin-top: 14px; background: var(--rosepale); border: 1px solid rgba(237, 0, 47, 0.18); border-left: 5px solid var(--collab); border-radius: 14px; padding: 16px 24px; text-align: left; }
.val-note-k { display: block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--collab); }
.val-note-t { font-size: 0.99rem; color: var(--ink); line-height: 1.55; margin-top: 5px; }
.val-note-t b { font-weight: 800; }

.val-sub { font-size: 1.04rem; color: var(--ink-soft); max-width: 680px; margin: 12px auto 0; }
.val-sub b { color: var(--ink); font-weight: 700; }
.val-circles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; text-align: left; }
@media (max-width: 620px) { .val-circles { grid-template-columns: 1fr; } }
.val-circle { background: var(--bg-card); border: 1px solid var(--line); border-top: 3px solid var(--collab); border-radius: 16px; padding: 22px 24px; box-shadow: var(--shadow); }
.val-circle.info { border-top-color: var(--ink-soft); }
.val-circle-k { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.val-circle-t { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.01em; margin: 8px 0 7px; color: var(--ink); }
.val-circle-d { font-size: 0.93rem; color: #45454a; line-height: 1.5; }
.val-circle-d b { color: var(--ink); font-weight: 700; }
.val-close { margin-top: 24px; font-size: 1.1rem; color: var(--ink-soft); line-height: 1.5; }
.val-close b { color: var(--ink); font-weight: 800; }

/* =========================================================
   Verrou d'accès (modal bloquante)
   ========================================================= */
body.locked { overflow: hidden; }
.gate { position: fixed; inset: 0; z-index: 9999; background: var(--bg); display: grid; place-items: center; padding: 24px; }
.gate[hidden] { display: none; }
.gate-box { width: 100%; max-width: 380px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 38px 34px; text-align: center; }
.gate-logo { width: 52px; height: 52px; border-radius: 14px; background: var(--collab); color: #fff; font-weight: 900; font-size: 1.3rem; display: grid; place-items: center; margin: 0 auto 18px; }
.gate-title { font-size: 1.4rem; font-weight: 900; letter-spacing: -0.02em; color: var(--ink); }
.gate-sub { font-size: 0.92rem; color: var(--ink-soft); margin-top: 8px; line-height: 1.5; }
.gate-form { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.gate-input { font-family: inherit; font-size: 1rem; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; outline: none; transition: border-color 0.15s; }
.gate-input:focus { border-color: var(--collab); }
.gate-btn { font-family: inherit; font-size: 1rem; font-weight: 800; color: #fff; background: var(--collab); border: none; border-radius: 12px; padding: 13px 16px; cursor: pointer; transition: filter 0.15s; }
.gate-btn:hover { filter: brightness(0.94); }
.gate-err { font-size: 0.86rem; color: var(--collab); font-weight: 700; margin-top: 12px; }
.gate-err[hidden] { display: none; }
