:root{
  --bg:#ffffff;
  --surface:#ffffff;
  --soft:#f7f8fa;
  --pink:#fff6f7;
  --text:#171a20;
  --muted:#707884;
  --line:#e8ebef;
  --accent:#ef4059;
  --accent-strong:#df314c;
  --accent-soft:#ffe9ed;
  --green:#28a96b;
  --blue:#4b7cf3;
  --orange:#f59d3d;
  --purple:#8668d7;
  --shadow:0 24px 70px rgba(20,28,38,.10);
  --container:1160px;
}

html[data-theme="dark"]{
  --bg:#101216;
  --surface:#16191f;
  --soft:#1b1f26;
  --pink:#21181c;
  --text:#f5f7fa;
  --muted:#9da5b1;
  --line:#2b3038;
  --accent:#ff5a70;
  --accent-strong:#ff6a7e;
  --accent-soft:#3a2027;
  --green:#42c98a;
  --shadow:0 28px 80px rgba(0,0,0,.34);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}
button{color:inherit}
img{max-width:100%}

[data-debug-cta]{display:none!important}
html[data-pastek-debug="1"] [data-public-cta]{display:none!important}
html[data-pastek-debug="1"] [data-debug-cta]{display:inline-flex!important}
html[data-pastek-debug="1"] h2[data-debug-cta],
html[data-pastek-debug="1"] p[data-debug-cta]{display:block!important}

.container{
  width:min(var(--container),calc(100% - 40px));
  margin-inline:auto;
}

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:color-mix(in srgb,var(--bg) 88%,transparent);
  backdrop-filter:blur(16px);
  border-bottom:1px solid color-mix(in srgb,var(--line) 75%,transparent);
}
.header-inner{
  min-height:72px;
  display:flex;
  align-items:center;
  gap:28px;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:18px;
  font-weight:850;
  letter-spacing:-.02em;
}
.main-nav{
  display:flex;
  align-items:center;
  gap:22px;
  margin-left:auto;
}
.main-nav a{
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}
.main-nav a:hover{color:var(--text)}
.header-actions{display:flex;align-items:center;gap:9px}
.theme-button{
  width:40px;height:40px;display:grid;place-items:center;
  border:1px solid var(--line);border-radius:12px;
  background:var(--surface);color:var(--muted);cursor:pointer
}

.button{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 16px;
  border-radius:12px;
  font-size:14px;
  font-weight:800;
  transition:.18s ease;
}
.button-primary{
  background:var(--accent);color:#fff;border:1px solid var(--accent);
  box-shadow:0 8px 22px rgba(239,64,89,.18)
}
.button-primary:hover{background:var(--accent-strong);border-color:var(--accent-strong);transform:translateY(-1px)}
.button-ghost{background:var(--surface);color:var(--text);border:1px solid var(--line)}
.button-ghost:hover{background:var(--soft)}
.button-large{min-height:50px;padding-inline:20px;border-radius:14px}

.eyebrow{
  display:inline-flex;align-items:center;min-height:28px;padding:0 11px;
  border-radius:999px;background:var(--accent-soft);color:var(--accent);
  font-size:12px;font-weight:850;letter-spacing:.02em
}

.hero{padding:92px 0 76px;overflow:hidden}
.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(420px,.95fr);
  gap:72px;align-items:center
}
.hero h1{
  max-width:760px;margin:20px 0;
  font-size:clamp(46px,6vw,76px);line-height:.98;letter-spacing:-.055em
}
.hero-lead{max-width:660px;margin:0;color:var(--muted);font-size:19px;line-height:1.65}
.hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:30px}
.hero-points{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:24px;color:var(--muted);font-size:13px}
.hero-points span{display:flex;align-items:center;gap:7px}
.hero-points span::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--green)}

.hero-visual{position:relative;min-height:510px;display:grid;place-items:center}
.hero-visual::before{
  content:"";position:absolute;width:460px;height:460px;border-radius:50%;
  background:radial-gradient(circle at 35% 30%,rgba(239,64,89,.16),transparent 55%),
             radial-gradient(circle at 70% 70%,rgba(42,177,112,.12),transparent 55%)
}
.phone-card{
  position:relative;z-index:2;width:min(410px,100%);padding:24px;
  border:1px solid var(--line);border-radius:28px;background:var(--surface);box-shadow:var(--shadow)
}
.phone-card-top{display:flex;justify-content:space-between;align-items:flex-start;padding-bottom:18px;border-bottom:1px solid var(--line)}
.phone-card-top small{display:block;color:var(--muted);margin-bottom:5px}
.phone-card-top strong{font-size:18px}
.status-dot{width:11px;height:11px;margin-top:6px;border-radius:50%;background:var(--green);box-shadow:0 0 0 5px color-mix(in srgb,var(--green) 16%,transparent)}
.caller{display:flex;align-items:center;gap:14px;padding:22px 0 20px}
.caller-avatar{width:52px;height:52px;display:grid;place-items:center;border-radius:17px;background:var(--accent-soft);color:var(--accent);font-weight:900}
.caller strong,.caller span{display:block}.caller span{margin-top:3px;color:var(--muted);font-size:13px}
.call-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.call-actions span{min-height:42px;display:grid;place-items:center;border:1px solid var(--line);border-radius:12px;background:var(--soft);font-size:12px;font-weight:800}
.mini-timeline{display:grid;gap:12px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}
.mini-timeline>div{display:flex;align-items:center;gap:10px}
.timeline-dot{width:8px;height:8px;border-radius:50%;background:var(--accent)}
.mini-timeline p{margin:0;color:var(--muted);font-size:12px}.mini-timeline strong{color:var(--text)}
.floating-card{
  position:absolute;z-index:3;display:flex;align-items:center;gap:10px;padding:13px 15px;
  border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:0 16px 45px rgba(22,30,40,.10)
}
.floating-card strong,.floating-card small{display:block}
.floating-card strong{font-size:12px}.floating-card small{margin-top:3px;color:var(--muted);font-size:10px}
.floating-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:var(--accent-soft);color:var(--accent);font-weight:900}
.floating-card-one{top:72px;right:-10px}.floating-card-two{bottom:64px;left:-16px}

.section{padding:82px 0}
.section-soft{background:var(--soft);border-block:1px solid var(--line)}
.section-heading{max-width:740px;margin-bottom:34px}
.section-heading h2,.copy-block h2,.trust-card h2,.access-card h2{
  margin:15px 0 10px;font-size:clamp(32px,4vw,50px);line-height:1.06;letter-spacing:-.04em
}
.section-heading p,.copy-block p,.access-card p{margin:0;color:var(--muted);font-size:16px;line-height:1.65}

.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.feature-card{
  padding:24px;border:1px solid var(--line);border-radius:20px;background:var(--surface)
}
.feature-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:var(--accent-soft);color:var(--accent);font-size:18px;font-weight:900}
.feature-card h3{margin:18px 0 8px;font-size:17px;letter-spacing:-.02em}
.feature-card p{margin:0;color:var(--muted);font-size:14px;line-height:1.6}

.split{display:grid;grid-template-columns:minmax(0,.9fr) minmax(420px,1.1fr);gap:70px;align-items:center}
.split-reverse{grid-template-columns:minmax(420px,1.1fr) minmax(0,.9fr)}
.copy-block{max-width:520px}
.demo-card{
  border:1px solid var(--line);border-radius:24px;background:var(--surface);
  box-shadow:0 18px 60px rgba(25,32,42,.06)
}

.reply-card{padding:18px}
.reply-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:5px;border-radius:14px;background:var(--soft)}
.reply-tab{min-height:40px;border:0;border-radius:10px;background:transparent;color:var(--muted);font-size:12px;font-weight:800;cursor:pointer}
.reply-tab[aria-selected="true"]{background:var(--surface);color:var(--text);box-shadow:0 3px 14px rgba(20,28,38,.06)}
.reply-visual{height:150px;display:grid;place-items:center;margin:16px 0;border-radius:18px;background:linear-gradient(135deg,var(--pink),var(--soft));overflow:hidden}
.wave,.call-wave{width:72%;height:42px;background:repeating-linear-gradient(90deg,var(--accent) 0 3px,transparent 3px 9px);mask:linear-gradient(90deg,transparent,#000 15%,#000 85%,transparent);opacity:.75}
.ai-lines{width:70%;display:grid;gap:12px}.ai-lines span{height:9px;border-radius:999px;background:var(--accent-soft)}.ai-lines span:nth-child(2){width:82%}.ai-lines span:nth-child(3){width:61%}
.custom-icons{display:flex;gap:18px}.custom-icons span{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;background:var(--surface);border:1px solid var(--line);font-size:18px}
.reply-content{padding:4px 4px 2px}.reply-content h3{margin:0 0 8px;font-size:18px}.reply-content p{margin:0;color:var(--muted);font-size:13px;line-height:1.55}
.chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:15px}.chips span{padding:7px 10px;border-radius:999px;background:var(--soft);color:var(--muted);font-size:11px;font-weight:800}

.assistant-card{padding:22px}
.assistant-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}
.assistant-head strong,.assistant-head span{display:block}.assistant-head span{margin-top:4px;color:var(--muted);font-size:12px}
.live-pill{padding:6px 9px;border-radius:999px;background:color-mix(in srgb,var(--green) 13%,transparent);color:var(--green)!important;font-weight:850}
.call-orb{width:68px;height:68px;display:grid;place-items:center;margin:28px auto 10px;border-radius:22px;background:var(--accent-soft);color:var(--accent);font-size:24px}
.assistant-card .call-wave{height:24px;margin:0 auto 25px}
.transcript{display:grid;gap:8px}.transcript>div,.transcript>strong{padding:11px 13px;border-radius:13px;background:var(--soft);font-size:12px;line-height:1.5}.transcript .accent-line{background:var(--accent-soft);color:var(--accent)}.transcript>strong{font-weight:800}

.timeline-card{padding:10px}
.event{display:flex;align-items:center;gap:12px;padding:12px 10px;border-bottom:1px solid var(--line)}.event:last-child{border-bottom:0}
.event-icon{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;border-radius:12px;font-weight:900}
.event-icon.green{background:color-mix(in srgb,var(--green) 12%,transparent);color:var(--green)}
.event-icon.blue{background:color-mix(in srgb,var(--blue) 12%,transparent);color:var(--blue)}
.event-icon.orange{background:color-mix(in srgb,var(--orange) 13%,transparent);color:var(--orange)}
.event-icon.purple{background:color-mix(in srgb,var(--purple) 13%,transparent);color:var(--purple)}
.event strong,.event small{display:block}.event strong{font-size:13px}.event small{margin-top:3px;color:var(--muted);font-size:11px}

.number-grid{display:grid;grid-template-columns:1.25fr .9fr .9fr;gap:14px}
.number-card{padding:22px;border:1px solid var(--line);border-radius:20px;background:var(--surface)}
.number-card-main{box-shadow:0 18px 55px rgba(25,32,42,.06)}
.number-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.number-head strong,.number-head small{display:block}.number-head strong{font-size:16px}.number-head small{margin-top:4px;color:var(--muted);font-size:11px}
.status{padding:6px 9px;border-radius:999px;font-size:10px;font-weight:850}.status.ok{background:color-mix(in srgb,var(--green) 13%,transparent);color:var(--green)}.status.soon{background:var(--accent-soft);color:var(--accent)}.status.future{background:var(--soft);color:var(--muted)}
.number-badges{display:flex;flex-wrap:wrap;gap:8px;margin:23px 0}.number-badges span{min-width:44px;height:44px;display:grid;place-items:center;border-radius:13px;border:1px solid var(--line);font-weight:900}
.number-card p{margin:0;color:var(--muted);font-size:12px;line-height:1.55}
.globe{width:64px;height:64px;display:grid;place-items:center;margin:20px 0;border-radius:20px;background:var(--accent-soft);color:var(--accent);font-size:28px}

.builder-card{padding:18px;display:grid;grid-template-columns:.85fr 1.15fr;gap:14px}
.pieces{display:grid;align-content:start;gap:8px}
.pieces button{min-height:43px;padding:0 12px;text-align:left;border:1px solid var(--line);border-radius:12px;background:var(--surface);font-size:12px;font-weight:800;cursor:pointer}
.pieces button[aria-pressed="true"]{background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 35%,var(--line));color:var(--accent)}
.board{min-height:280px;padding:18px;border-radius:18px;background:var(--soft)}
.board>strong{font-size:13px}.board-items{display:grid;gap:8px;margin-top:16px}.board-empty{color:var(--muted);font-size:12px}.board-item{padding:11px 12px;border-radius:12px;background:var(--surface);border:1px solid var(--line);font-size:12px;font-weight:800}

.handoff-card{padding:24px}
.handoff-stage{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center}
.handoff-person{padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--soft);text-align:center}.handoff-person strong,.handoff-person span{display:block}.handoff-person strong{font-size:13px}.handoff-person span{margin-top:4px;color:var(--muted);font-size:10px}
.handoff-arrow{color:var(--accent);font-size:24px;font-weight:900}
.handoff-state{margin-top:18px;padding:12px 14px;border-radius:13px;background:var(--accent-soft);color:var(--accent);font-size:12px;font-weight:800;text-align:center}

.trust-section{padding-top:28px}
.trust-card{display:grid;grid-template-columns:1.1fr .9fr;gap:40px;padding:42px;border:1px solid var(--line);border-radius:28px;background:var(--surface)}
.trust-card h2{font-size:38px}
.trust-list{display:grid;align-content:center;gap:10px}.trust-list span{position:relative;padding:13px 14px 13px 42px;border-radius:14px;background:var(--soft);color:var(--muted);font-size:13px;font-weight:650}.trust-list span::before{content:"✓";position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--green);font-weight:950}

.access-section{padding-top:40px}
.access-card{display:grid;grid-template-columns:1fr auto;align-items:center;gap:40px;padding:44px;border-radius:28px;background:var(--pink);border:1px solid color-mix(in srgb,var(--accent) 18%,var(--line))}
.access-card h2{font-size:42px}
.access-actions{display:grid;justify-items:start;gap:12px}
.text-link{color:var(--muted);font-size:13px;font-weight:750}.text-link:hover{color:var(--accent)}

.site-footer{margin-top:30px;padding:44px 0 22px;border-top:1px solid var(--line)}
.footer-inner{display:grid;grid-template-columns:1fr 1.3fr;gap:70px}
.footer-brand p{max-width:300px;margin:14px 0 0;color:var(--muted);font-size:13px}
.footer-links{display:grid;grid-template-columns:repeat(3,1fr);gap:30px}
.footer-links div{display:grid;gap:9px;align-content:start}.footer-links strong{font-size:12px}.footer-links a{color:var(--muted);font-size:12px}.footer-links a:hover{color:var(--text)}
.footer-bottom{display:flex;justify-content:space-between;margin-top:36px;padding-top:18px;border-top:1px solid var(--line);color:var(--muted);font-size:11px}

@media(max-width:980px){
  .main-nav{display:none}
  .hero-grid,.split,.split-reverse{grid-template-columns:1fr;gap:32px}
  .hero{padding-top:64px}
  .hero-copy{text-align:center}.hero-lead{margin-inline:auto}.hero-actions,.hero-points{justify-content:center}
  .feature-grid{grid-template-columns:repeat(2,1fr)}
  .number-grid{grid-template-columns:1fr}
  .copy-block{max-width:none}
  .trust-card,.access-card{grid-template-columns:1fr}
  .footer-inner{grid-template-columns:1fr;gap:34px}
}
@media(max-width:680px){
  .container{width:min(100% - 28px,var(--container))}
  .header-inner{min-height:64px}.brand>span{display:none}
  .header-actions .button-primary{display:none!important}
  html[data-pastek-debug="1"] .header-actions [data-debug-cta]{display:none!important}
  .hero{padding:48px 0 58px}.hero h1{font-size:45px}.hero-lead{font-size:17px}.hero-visual{min-height:410px}
  .floating-card{display:none}
  .feature-grid{grid-template-columns:1fr}
  .section{padding:62px 0}
  .builder-card{grid-template-columns:1fr}
  .trust-card,.access-card{padding:28px;border-radius:22px}
  .trust-card h2,.access-card h2{font-size:32px}
  .footer-links{grid-template-columns:1fr 1fr}
  .footer-bottom{gap:10px;flex-direction:column}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition:none!important;animation:none!important}
}


/* =========================================================
   V5.0.4 — PREMIERE PARTIE DE L'ANCIENNE HOME RESTAUREE
   ========================================================= */

.old-hero-restored{
  position:relative;
  isolation:isolate;
}

.hero-glow{
  position:absolute;
  z-index:-1;
  border-radius:50%;
  pointer-events:none;
  filter:blur(8px);
}

.hero-glow-one{
  width:420px;
  height:420px;
  top:30px;
  right:8%;
  background:radial-gradient(circle,rgba(239,64,89,.14),rgba(239,64,89,0) 68%);
}

.hero-glow-two{
  width:330px;
  height:330px;
  left:-110px;
  bottom:-80px;
  background:radial-gradient(circle,rgba(39,169,108,.10),rgba(39,169,108,0) 70%);
}

.flow-preview{
  position:relative;
  width:100%;
  min-height:500px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:28px;
  background:var(--surface);
  box-shadow:var(--shadow);
  overflow:hidden;
}

.preview-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding-bottom:16px;
  border-bottom:1px solid var(--line);
}

.preview-head small,
.preview-head strong{
  display:block;
}

.preview-head small{
  margin-bottom:5px;
  color:var(--muted);
  font-size:11px;
  font-weight:700;
}

.preview-head strong{
  font-size:17px;
  letter-spacing:-.02em;
}

.status-pill{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:30px;
  padding:0 11px;
  border-radius:999px;
  background:color-mix(in srgb,var(--green) 12%,transparent);
  color:var(--green);
  font-size:11px;
  font-weight:850;
}

.status-pill span{
  width:7px;
  height:7px;
  border-radius:50%;
  background:currentColor;
  box-shadow:0 0 0 4px color-mix(in srgb,var(--green) 13%,transparent);
}

.preview-controls{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  margin:16px 0 8px;
  padding:5px;
  border-radius:14px;
  background:var(--soft);
}

.scenario-button{
  min-height:39px;
  padding:0 12px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--muted);
  font-size:11px;
  font-weight:850;
  cursor:pointer;
}

.scenario-button.active{
  background:var(--surface);
  color:var(--text);
  box-shadow:0 4px 15px rgba(20,28,38,.07);
}

.flow-stage{
  position:relative;
  height:325px;
  margin-top:4px;
}

.flow-node{
  position:absolute;
  z-index:3;
  box-sizing:border-box;
  border:1px solid var(--line);
  background:var(--surface);
  box-shadow:0 8px 26px rgba(25,32,42,.07);
}

.flow-node-call,
.flow-node-condition{
  left:50%;
  width:230px;
  min-height:70px;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:11px;
  padding:12px 13px;
  border-radius:15px;
}

.flow-node-call{top:18px}
.flow-node-condition{top:122px}

.flow-node-icon{
  width:38px;
  height:38px;
  flex:0 0 38px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:var(--accent-soft);
  color:var(--accent);
  font-weight:900;
}

.flow-node small,
.flow-node strong,
.flow-node span{
  display:block;
}

.flow-node small{
  margin-bottom:3px;
  color:var(--muted);
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.flow-node strong{
  font-size:12px;
}

.flow-node div>span,
.flow-node-team>span:last-child,
.flow-node-assistant>span:last-child{
  margin-top:3px;
  color:var(--muted);
  font-size:9px;
}

.flow-node-team,
.flow-node-assistant{
  top:238px;
  width:165px;
  min-height:66px;
  padding:16px 12px 11px;
  border-radius:15px;
  text-align:center;
}

.flow-node-team{left:18px}
.flow-node-assistant{right:18px}

.flow-branch-tag{
  position:absolute;
  top:-10px;
  left:50%;
  transform:translateX(-50%);
  min-height:20px;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  padding:0 8px;
  border-radius:999px;
  font-size:8px!important;
  font-weight:900;
}

.flow-branch-tag-open{
  background:color-mix(in srgb,var(--green) 14%,var(--surface));
  color:var(--green)!important;
}

.flow-branch-tag-closed{
  background:var(--accent-soft);
  color:var(--accent)!important;
}

.flow-line{
  position:absolute;
  z-index:1;
  background:var(--line);
  border-radius:999px;
}

.flow-line-one{
  left:50%;
  top:88px;
  width:2px;
  height:34px;
  transform:translateX(-50%);
}

.flow-line-two{
  left:50%;
  top:192px;
  width:2px;
  height:24px;
  transform:translateX(-50%);
}

.flow-line-left,
.flow-line-right{
  top:215px;
  width:calc(50% - 100px);
  height:2px;
}

.flow-line-left{left:101px}
.flow-line-right{right:101px}

.flow-line-left::after,
.flow-line-right::after{
  content:"";
  position:absolute;
  top:0;
  width:2px;
  height:23px;
  background:var(--line);
}

.flow-line-left::after{left:0}
.flow-line-right::after{right:0}

.flow-beam{
  position:absolute;
  z-index:4;
  left:calc(50% - 5px);
  top:84px;
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 0 5px color-mix(in srgb,var(--accent) 13%,transparent);
  animation:pastek-flow-beam-open 3.2s ease-in-out infinite;
}

.flow-stage[data-hero-flow="closed"] .flow-beam{
  animation-name:pastek-flow-beam-closed;
}

.flow-stage[data-hero-flow="open"] [data-flow-branch="open"],
.flow-stage[data-hero-flow="closed"] [data-flow-branch="closed"]{
  border-color:color-mix(in srgb,var(--accent) 38%,var(--line));
  box-shadow:0 10px 30px color-mix(in srgb,var(--accent) 10%,transparent);
  opacity:1;
}

.flow-stage[data-hero-flow="open"] [data-flow-branch="closed"],
.flow-stage[data-hero-flow="closed"] [data-flow-branch="open"]{
  opacity:.42;
}

.preview-event{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:38px;
  padding:0 12px;
  border-radius:12px;
  background:var(--soft);
  color:var(--muted);
  font-size:10px;
  font-weight:700;
}

.preview-event-dot{
  width:7px;
  height:7px;
  flex:0 0 7px;
  border-radius:50%;
  background:var(--accent);
}

@keyframes pastek-flow-beam-open{
  0%,8%{transform:translate(0,0);opacity:0}
  15%{opacity:1}
  40%{transform:translate(0,104px)}
  65%{transform:translate(-118px,131px)}
  82%{transform:translate(-118px,154px);opacity:1}
  100%{transform:translate(-118px,154px);opacity:0}
}

@keyframes pastek-flow-beam-closed{
  0%,8%{transform:translate(0,0);opacity:0}
  15%{opacity:1}
  40%{transform:translate(0,104px)}
  65%{transform:translate(118px,131px)}
  82%{transform:translate(118px,154px);opacity:1}
  100%{transform:translate(118px,154px);opacity:0}
}

@media(max-width:980px){
  .flow-preview{
    width:min(560px,100%);
    margin-inline:auto;
  }
}

@media(max-width:560px){
  .flow-preview{
    min-height:475px;
    padding:16px;
    border-radius:22px;
  }

  .flow-node-call,
  .flow-node-condition{
    width:210px;
  }

  .flow-node-team,
  .flow-node-assistant{
    width:140px;
  }

  .flow-node-team{left:0}
  .flow-node-assistant{right:0}

  .flow-line-left,
  .flow-line-right{
    width:calc(50% - 85px);
  }

  .flow-line-left{left:84px}
  .flow-line-right{right:84px}
}

@media(prefers-reduced-motion:reduce){
  .flow-beam{animation:none!important}
}



/* PASTEK HOME V5.0.6 — rendu recalibré */
.old-hero-restored{padding-top:76px!important;padding-bottom:72px!important}
.old-hero-restored .hero-grid{grid-template-columns:minmax(0,1fr) minmax(430px,.88fr)!important;gap:54px!important}
.old-hero-restored .hero-copy{min-width:0!important}
.old-hero-restored .hero-copy h1{max-width:690px!important;margin:18px 0 20px!important;font-size:clamp(44px,4.25vw,64px)!important;line-height:1.01!important;letter-spacing:-.052em!important;text-wrap:balance}
.old-hero-restored .hero-lead{max-width:650px!important;font-size:17px!important;line-height:1.62!important}
.old-hero-restored .hero-actions{margin-top:26px!important}
.old-hero-restored .hero-proof{margin-top:20px!important}
.old-hero-restored .flow-preview{width:min(100%,500px)!important;min-height:476px!important;justify-self:end!important;padding:20px!important;border-radius:26px!important}
.old-hero-restored .flow-stage{height:304px!important}
.old-hero-restored .flow-node-call{top:14px!important}
.old-hero-restored .flow-node-condition{top:112px!important}
.old-hero-restored .flow-node-team,.old-hero-restored .flow-node-assistant{top:225px!important}
.old-hero-restored .flow-line-one{top:84px!important;height:28px!important}
.old-hero-restored .flow-line-two{top:182px!important;height:22px!important}
.old-hero-restored .flow-line-left,.old-hero-restored .flow-line-right{top:203px!important}
.old-hero-restored .flow-beam{top:80px!important}
@media(max-width:1180px){.old-hero-restored .hero-grid{grid-template-columns:minmax(0,1fr) minmax(400px,.85fr)!important;gap:38px!important}.old-hero-restored .hero-copy h1{font-size:clamp(42px,4.45vw,58px)!important}}
@media(max-width:980px){.old-hero-restored{padding-top:58px!important}.old-hero-restored .hero-grid{grid-template-columns:1fr!important}.old-hero-restored .hero-copy{text-align:center!important}.old-hero-restored .hero-copy h1,.old-hero-restored .hero-lead{margin-left:auto!important;margin-right:auto!important}.old-hero-restored .hero-actions,.old-hero-restored .hero-proof{justify-content:center!important}.old-hero-restored .flow-preview{justify-self:center!important}}
@media(max-width:600px){.old-hero-restored .hero-copy h1{font-size:42px!important;line-height:1.02!important}.old-hero-restored .hero-lead{font-size:16px!important}.old-hero-restored .flow-preview{width:100%!important;min-height:458px!important;padding:14px!important}}

/* =========================================================
   PASTEK FLOW V5.0.6 — SVG CALCULE SUR LE DOM
   Le tracé est derrière les cartes. Le point n'entre jamais
   dans une carte : il disparaît pendant le traitement du nœud.
   ========================================================= */
.flow-route-svg{
  position:absolute;
  inset:0;
  z-index:1;
  width:100%;
  height:100%;
  overflow:visible;
  pointer-events:none;
}
.flow-route-line{
  fill:none;
  stroke:var(--line);
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition:stroke .22s ease,opacity .22s ease;
}
.flow-stage[data-hero-flow="open"] .flow-route-open,
.flow-stage[data-hero-flow="closed"] .flow-route-closed{
  stroke:color-mix(in srgb,var(--accent) 38%,var(--line));
}
.flow-stage[data-hero-flow="open"] .flow-route-closed,
.flow-stage[data-hero-flow="closed"] .flow-route-open{
  opacity:.58;
}
.flow-route-dot{
  fill:var(--accent);
  stroke:var(--surface);
  stroke-width:2;
  opacity:0;
  filter:drop-shadow(0 0 5px color-mix(in srgb,var(--accent) 42%,transparent));
}
.flow-node{
  z-index:3!important;
}
/* Défense en profondeur : les anciens éléments ne doivent plus participer au rendu. */
.flow-line,.flow-beam{display:none!important}
@media(prefers-reduced-motion:reduce){
  .flow-route-dot{display:none!important}
}



/* PASTEK-BEGIN:home-auth-entry-v510 */
.text-link.js-open-login,
.footer-login.js-open-login,
.pastek-auth-link-v510{
  appearance:none;
  -webkit-appearance:none;
  border:0;
  padding:0;
  background:transparent;
  font:inherit;
  cursor:pointer;
}
.text-link.js-open-login{color:var(--brand);font-weight:800}
.footer-login.js-open-login{color:inherit;text-align:left}
.pastek-auth-link-v510{color:#ef4059;font-size:11px;font-weight:800}
.pastek-auth-loading-v510{
  width:100%;min-height:48px;display:grid;place-items:center;
  margin:0 0 14px;border:1px solid #eceff2;border-radius:12px;
  background:#f8f9fb;color:#858d98;font-size:11px;font-weight:650;
}
#authLoading[hidden],#emailLoginForm[hidden]{display:none!important}
body.modal-open{overflow:hidden}
/* PASTEK-END:home-auth-entry-v510 */


/* =========================================================
   PASTEK FLOW FINAL V5.1.1
   - SVG route strictly behind nodes
   - animated dot cannot touch a node
   - branch labels moved away from central route axis
   ========================================================= */

.flow-stage{
  isolation:isolate!important;
}

.flow-route-svg{
  z-index:1!important;
}

.flow-route-line{
  z-index:1!important;
}

.flow-route-dot{
  r:4;
  stroke-width:1.5!important;
  filter:none!important;
}

.flow-node{
  position:absolute!important;
  z-index:4!important;
  background:var(--surface)!important;
}

.flow-node-team,
.flow-node-assistant{
  overflow:visible!important;
}

/*
 * The route enters each branch at its top-centre.
 * Labels used to sit exactly on that same point.
 * They now sit on the outer corner, so there is no possible overlap.
 */
.flow-node-team,
.flow-node-assistant{
  min-height:76px!important;
  padding-top:29px!important;
}

.flow-node-team .flow-branch-tag{
  top:7px!important;
  left:9px!important;
  right:auto!important;
  transform:none!important;
  z-index:6!important;
  min-height:17px!important;
}

.flow-node-assistant .flow-branch-tag{
  top:7px!important;
  left:auto!important;
  right:9px!important;
  transform:none!important;
  z-index:6!important;
  min-height:17px!important;
}

/* Opaque label backgrounds: nothing underneath can bleed through. */
.flow-branch-tag-open{
  background:#e9f8f0!important;
}

.flow-branch-tag-closed{
  background:#fff0f3!important;
}

html[data-theme="dark"] .flow-branch-tag-open{
  background:#18352a!important;
}
html[data-theme="dark"] .flow-branch-tag-closed{
  background:#3a2027!important;
}

/* =========================================================
   PASTEK FLOW RUNTIME FINAL V5.1.8
   ========================================================= */
.flow-line,.flow-beam{display:none!important}
.flow-stage{isolation:isolate!important}
.flow-route-svg{position:absolute;inset:0;z-index:1;width:100%;height:100%;overflow:visible;pointer-events:none}
.flow-route-line{fill:none;stroke:var(--line);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:none!important}
.flow-route-dot{fill:#28a96b;stroke:var(--surface);stroke-width:2;opacity:0;transition:none!important;filter:none!important}
.flow-node{z-index:4!important;background:var(--surface)!important}

/* OUVERT = VERT, sur le trajet COMPLET. */
.flow-stage[data-hero-flow="open"] .flow-route-entry,
.flow-stage[data-hero-flow="open"] .flow-route-open{stroke:#28a96b!important;opacity:1!important}
.flow-stage[data-hero-flow="open"] .flow-route-closed{stroke:var(--line)!important;opacity:.42!important}
.flow-stage[data-hero-flow="open"] .flow-route-dot{fill:#28a96b!important}
.flow-stage[data-hero-flow="open"] .flow-node-team{border-color:#28a96b!important;opacity:1!important;box-shadow:0 10px 30px rgba(40,169,107,.10)!important}
.flow-stage[data-hero-flow="open"] .flow-node-assistant{border-color:var(--line)!important;opacity:.42!important;box-shadow:0 8px 26px rgba(25,32,42,.05)!important}

/* FERME = ROUGE, sur le trajet COMPLET. */
.flow-stage[data-hero-flow="closed"] .flow-route-entry,
.flow-stage[data-hero-flow="closed"] .flow-route-closed{stroke:#ef4059!important;opacity:1!important}
.flow-stage[data-hero-flow="closed"] .flow-route-open{stroke:var(--line)!important;opacity:.42!important}
.flow-stage[data-hero-flow="closed"] .flow-route-dot{fill:#ef4059!important}
.flow-stage[data-hero-flow="closed"] .flow-node-assistant{border-color:#ef4059!important;opacity:1!important;box-shadow:0 10px 30px rgba(239,64,89,.10)!important}
.flow-stage[data-hero-flow="closed"] .flow-node-team{border-color:var(--line)!important;opacity:.42!important;box-shadow:0 8px 26px rgba(25,32,42,.05)!important}

/* Pastilles placées DANS les cartes, jamais sur la trajectoire. */
.flow-node-team .flow-branch-tag{top:8px!important;left:10px!important;right:auto!important;transform:none!important;z-index:6!important}
.flow-node-assistant .flow-branch-tag{top:8px!important;left:auto!important;right:10px!important;transform:none!important;z-index:6!important}
.flow-branch-tag-open{color:#28a96b!important;background:#e9f8f0!important}
.flow-branch-tag-closed{color:#ef4059!important;background:#fff0f3!important}

.scenario-button[data-hero-scenario="open"].active{color:#188956!important;box-shadow:0 4px 15px rgba(20,28,38,.07),inset 0 0 0 1px rgba(40,169,107,.20)!important}
.scenario-button[data-hero-scenario="closed"].active{color:#df314c!important;box-shadow:0 4px 15px rgba(20,28,38,.07),inset 0 0 0 1px rgba(239,64,89,.18)!important}
.flow-preview[data-flow-preview-state="open"] .preview-event-dot{background:#28a96b!important}
.flow-preview[data-flow-preview-state="closed"] .preview-event-dot{background:#ef4059!important}

/* PASTEK FLOW RUNTIME ULTRASMOOTH V5.2.0 */
.flow-line,.flow-beam{display:none!important}
.flow-stage{isolation:isolate!important}
.flow-route-svg{position:absolute;inset:0;z-index:1;width:100%;height:100%;overflow:visible;pointer-events:none}
.flow-route-line{fill:none;stroke:var(--line);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:none!important}
.flow-motion-path{fill:none!important;stroke:none!important;pointer-events:none!important}
.flow-route-dot{fill:#28a96b;will-change:transform;stroke:var(--surface);stroke-width:2;opacity:0;transition:none!important;filter:none!important}
.flow-node{z-index:4!important;background:var(--surface)!important}
.flow-stage[data-hero-flow="open"] .flow-route-entry,.flow-stage[data-hero-flow="open"] .flow-route-open{stroke:#28a96b!important;opacity:1!important}
.flow-stage[data-hero-flow="open"] .flow-route-closed{stroke:var(--line)!important;opacity:.42!important}
.flow-stage[data-hero-flow="open"] .flow-route-dot{fill:#28a96b!important}
.flow-stage[data-hero-flow="open"] .flow-node-team{border-color:#28a96b!important;opacity:1!important;box-shadow:0 10px 30px rgba(40,169,107,.10)!important}
.flow-stage[data-hero-flow="open"] .flow-node-assistant{border-color:var(--line)!important;opacity:.42!important;box-shadow:0 8px 26px rgba(25,32,42,.05)!important}
.flow-stage[data-hero-flow="closed"] .flow-route-entry,.flow-stage[data-hero-flow="closed"] .flow-route-closed{stroke:#ef4059!important;opacity:1!important}
.flow-stage[data-hero-flow="closed"] .flow-route-open{stroke:var(--line)!important;opacity:.42!important}
.flow-stage[data-hero-flow="closed"] .flow-route-dot{fill:#ef4059!important}
.flow-stage[data-hero-flow="closed"] .flow-node-assistant{border-color:#ef4059!important;opacity:1!important;box-shadow:0 10px 30px rgba(239,64,89,.10)!important}
.flow-stage[data-hero-flow="closed"] .flow-node-team{border-color:var(--line)!important;opacity:.42!important;box-shadow:0 8px 26px rgba(25,32,42,.05)!important}
.flow-node-team .flow-branch-tag{top:8px!important;left:10px!important;right:auto!important;transform:none!important;z-index:6!important}
.flow-node-assistant .flow-branch-tag{top:8px!important;left:auto!important;right:10px!important;transform:none!important;z-index:6!important}
.flow-branch-tag-open{color:#28a96b!important;background:#e9f8f0!important}
.flow-branch-tag-closed{color:#ef4059!important;background:#fff0f3!important}
.scenario-button[data-hero-scenario="open"].active{color:#188956!important;box-shadow:0 4px 15px rgba(20,28,38,.07),inset 0 0 0 1px rgba(40,169,107,.20)!important}
.scenario-button[data-hero-scenario="closed"].active{color:#df314c!important;box-shadow:0 4px 15px rgba(20,28,38,.07),inset 0 0 0 1px rgba(239,64,89,.18)!important}
.flow-preview[data-flow-preview-state="open"] .preview-event-dot{background:#28a96b!important}
.flow-preview[data-flow-preview-state="closed"] .preview-event-dot{background:#ef4059!important}

