/* ==========================================================================
   Algo-IA · algo-ia.com · DA sombre tech premium
   Règles d'animation : transform + opacity uniquement (exception assumée :
   stroke-dashoffset sur les tracés SVG). Voir js/main.js pour les timelines.
   ========================================================================== */

/* ---------- Polices locales (RGPD : aucun appel à un CDN tiers) ---------- */
@font-face {
  font-family: "Clash Display";
  src: url("../fonts/clash-display-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("../fonts/clash-display-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi Fallback";
  src: local("Arial");
  size-adjust: 100%;
  ascent-override: 100%;
  descent-override: 25%;
}

:root {
  /* thème clair chaleureux : la clarté est notre marqueur de simplicité */
  --bg: #f7f5f1;
  --panel: #ffffff;
  --panel-2: #f0ede7;
  --text: #17171c;
  --text-dim: #5d5c66;
  --accent: #4a3ee0;
  --accent-glow: rgba(86, 70, 232, 0.28);
  --violet: #6c5df0;
  --violet-glow: rgba(108, 93, 240, 0.3);
  --indigo: #2f1bd4;
  --grad-brand: linear-gradient(105deg, #3527c9 0%, #6c5df0 45%, #4f8fe8 100%);
  --border: rgba(23, 23, 40, 0.09);
  --border-champ: rgba(23, 23, 40, 0.35);
  --piste: rgba(23, 23, 40, 0.14);
  --verre: rgba(255, 255, 255, 0.72);
  --font: "Satoshi", "Satoshi Fallback", system-ui, sans-serif;
  --font-display: "Clash Display", "Satoshi", system-ui, sans-serif;
}

/* chapitres sombres : les scènes immersives gardent la nuit.
   Les variables re-déclarées cascadent sur tout leur contenu. */
.zoom-wrap, .wf-wrap, .dash-wrap, .cal-wrap, .orbit-wrap, .demo, .mobile-cta {
  --bg: #0a0a0c;
  --panel: #141418;
  --panel-2: #1b1b21;
  --text: #f2f2f4;
  --text-dim: #9b9ba6;
  --accent: #7fd0ff;
  --accent-glow: rgba(127, 208, 255, 0.35);
  --border: rgba(255, 255, 255, 0.08);
  --border-champ: rgba(255, 255, 255, 0.38);
  --piste: #2a2a32;
  --verre: rgba(20, 20, 24, 0.75);
}
.zoom-wrap, .wf-wrap, .dash-wrap, .cal-wrap, .orbit-wrap { background: #0a0a0c; color: var(--text); }

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--bg); }

/* ---------- Accessibilité ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.cta:focus-visible { outline-offset: 4px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 100;
  padding: 0.7rem 1.2rem;
  background: var(--accent); color: #05161b;
  font-weight: 700; text-decoration: none; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

section[id] { scroll-margin-top: 5rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 1.1rem 2rem;
  backdrop-filter: blur(6px);
}
/* en-tête caméléon : voiles jour et nuit superposés, fondu croisé
   quand un chapitre sombre passe sous le bandeau */
.site-header::before, .site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.site-header::before { background: linear-gradient(rgba(247, 245, 241, 0.9), rgba(247, 245, 241, 0)); }
.site-header::after { background: linear-gradient(rgba(10, 10, 12, 0.88), rgba(10, 10, 12, 0)); opacity: 0; }
.header-nuit::before { opacity: 0; }
.header-nuit::after { opacity: 1; }
.logo-lien { position: relative; display: inline-flex; }
.logo-lien .logo-img { transition: opacity 0.35s ease; }
.logo-nuit { position: absolute; inset: 0; opacity: 0; }
.header-nuit .logo-nuit { opacity: 1; }
.header-nuit .logo-jour { opacity: 0; }
.main-nav a { transition: color 0.35s ease; }
.header-nuit .main-nav a { color: rgba(242, 242, 244, 0.72); }
.header-nuit .main-nav a:hover, .header-nuit .main-nav a[aria-current] { color: #f2f2f4; }

.wordmark {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}
.wordmark .tiret, .wordmark .ia { color: var(--accent); }

.main-nav { display: flex; gap: 1.2rem; margin-left: auto; }
.main-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.7rem 0.3rem;
  transition: color 0.25s;
}
.main-nav a:hover { color: var(--text); }

/* ---------- CTA ---------- */
.cta {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  background: var(--accent);
  color: #05161b;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 24px var(--accent-glow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 0 40px var(--accent-glow); }
.cta-small { padding: 0.55rem 1.2rem; font-size: 0.85rem; }
.cta-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-champ);
  box-shadow: none;
}
.cta-big { padding: 1.1rem 2.6rem; font-size: 1.1rem; }

/* ---------- Blocs de section partagés ---------- */
.section-head {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}
.kicker {
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}
.section-head h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  padding-top: 0.08em;
}
.section-intro {
  margin-top: 1.4rem;
  color: var(--text-dim);
  font-size: 1.05rem;
}

/* ---------- Héro ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 45%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 45%, black 30%, transparent 75%);
  opacity: 0.6;
}

.hero-content { position: relative; z-index: 2; padding: 4.5rem 1.5rem 0; max-width: 60rem; }

.hero-kicker {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 2.1rem;
}

.hero-title {
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line-in { display: inline-block; }

.hero-sub {
  margin: 1.8rem auto 2.4rem;
  max-width: 34rem;
  color: var(--text-dim);
  font-size: 1.1rem;
}

.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* états initiaux de l'animation d'entrée : uniquement si le JS est là */
html.js .hero-kicker,
html.js .hero-sub,
html.js .hero-ctas,
html.js .hero-chips .chip { opacity: 0; }
html.js .hero-title .line-in { transform: translateY(112%); }

/* chips : deux rails latéraux, jamais sur la colonne de texte */
.hero-chips {
  position: absolute; inset: 0; z-index: 1;
  display: flex; justify-content: space-between;
  pointer-events: none;
}
.chip-rail {
  position: relative;
  flex: 0 0 clamp(0rem, calc((100vw - 68rem) / 2), 26rem);
  overflow: visible;
}
.chip {
  position: absolute;
  top: var(--y);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  background: var(--verre);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--text-dim);
  backdrop-filter: blur(4px);
  animation: floaty 7s ease-in-out infinite;
  animation-delay: var(--d);
  white-space: nowrap;
}
.rail-left .chip { left: calc(2rem + var(--dx)); }
.rail-right .chip { right: calc(2rem + var(--dx)); }
.chip .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  flex: none;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  width: 24px; height: 40px;
  margin-left: -12px;
  border: 1.5px solid var(--text-dim);
  border-radius: 14px;
  z-index: 2;
}
.scroll-hint span {
  position: absolute;
  top: 7px; left: 50%;
  width: 3px; height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--accent);
  animation: hint 1.8s ease-in-out infinite;
}
@keyframes hint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- 01 · Section épinglée zoom arrière ---------- */
.zoom-wrap { position: relative; height: 320vh; background: var(--bg); }

.zoom-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-scene {
  position: absolute;
  inset: 0;
  transform: scale(1.55);
  will-change: transform;
}

.scene-board { position: absolute; inset: 0; }

.task-card {
  position: absolute;
  width: 15.5vw;
  min-width: 168px;
  padding: 0.9rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.35;
  transform: translate(var(--ix), var(--iy)) rotate(var(--ir));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.task-card em {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.task-card i {
  display: block;
  font-style: normal;
  color: var(--text-dim);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* positions finales en grille + offsets chaos (surclassables en mobile) */
.tc-1 { left: 12vw; top: 15vh; --ix: -16vw; --iy: -10vh; --ir: -14deg; }
.tc-2 { left: 31vw; top: 15vh; --ix: 14vw;  --iy: -13vh; --ir: 11deg; }
.tc-3 { left: 50vw; top: 15vh; --ix: -11vw; --iy: 12vh;  --ir: 8deg; }
.tc-4 { left: 69vw; top: 15vh; --ix: 18vw;  --iy: 9vh;   --ir: -9deg; }
.tc-5 { left: 12vw; top: 67vh; --ix: -19vw; --iy: 3vh;   --ir: 17deg; }
.tc-6 { left: 31vw; top: 67vh; --ix: 6vw;   --iy: -17vh; --ir: -6deg; }
.tc-7 { left: 50vw; top: 67vh; --ix: 10vw;  --iy: 15vh;  --ir: 13deg; }
.tc-8 { left: 69vw; top: 67vh; --ix: -7vw;  --iy: -13vh; --ir: -18deg; }

/* badge « Traité » : pope quand la carte atteint sa place */
.done-badge {
  position: absolute;
  top: -0.55rem; right: -0.4rem;
  padding: 0.18rem 0.55rem 0.18rem 1.15rem;
  background: var(--accent);
  color: #05161b;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  opacity: 0;
  transform: scale(0.6);
}
.done-badge::before {
  content: "";
  position: absolute;
  left: 0.42rem; top: 50%;
  width: 0.32rem; height: 0.18rem;
  border-left: 2px solid #05161b;
  border-bottom: 2px solid #05161b;
  transform: translateY(-70%) rotate(-45deg);
}

.scene-flow { position: absolute; inset: 0; }
.flow-lines { width: 100%; height: 100%; transform: translateZ(0); }
.flow-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  filter: drop-shadow(0 0 6px var(--accent-glow));
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.zoom-caption, .wf-caption, .dash-caption {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 56rem;
  padding: 0 1.5rem;
  opacity: 0;
  transform: translateY(40px);
}
.zoom-kicker {
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.zoom-title {
  word-spacing: 0.05em;
  font-size: clamp(2.4rem, 6.5vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 40px rgba(10, 10, 12, 0.9);
}
.zoom-text {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1.8rem;
  color: var(--text-dim);
  font-size: 1.05rem;
  text-shadow: 0 2px 20px rgba(10, 10, 12, 0.9);
}

.zoom-sticky::after, .wf-sticky::after, .dash-sticky::after, .cal-sticky::after, .orbit-sticky::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse 88% 80% at 50% 50%, rgba(10, 10, 12, 0.97), transparent 78%);
  opacity: var(--veil, 0);
  pointer-events: none;
}

/* ---------- Chiffres ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 22vh 6vw;
  background: var(--bg);
}
.stat { text-align: center; }
.stat-num {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  text-shadow: 0 0 40px var(--accent-glow);
  font-variant-numeric: tabular-nums;
}
.count { display: inline-block; min-width: 1.2ch; text-align: right; }
.stat-label {
  margin-top: 0.8rem;
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 18rem;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Modules ---------- */
.modules { padding: 14vh 6vw 10vh; }
.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  max-width: 68rem;
  margin: 5rem auto 0;
}
.module {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem 1.2rem 1.6rem;
}
.module h3 { font-size: 1.25rem; margin-top: 1.2rem; letter-spacing: -0.01em; }
.module p { color: var(--text-dim); font-size: 0.95rem; margin-top: 0.5rem; }
.module-price {
  color: var(--accent) !important;
  font-size: 0.85rem !important;
  font-weight: 500;
  margin-top: 0.8rem !important;
}

.demo {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.8rem;
}
.demo * { animation-play-state: paused; }
.demo.play * { animation-play-state: running; }

/* fenêtres d'apparition génériques sur cycle 8 s */
@keyframes pop-5-10 { 0%,5% { opacity: 0; transform: translateY(10px) scale(0.95); } 10%,88% { opacity: 1; transform: none; } 96%,100% { opacity: 0; } }
@keyframes pop-30-36 { 0%,30% { opacity: 0; transform: translateY(10px) scale(0.95); } 36%,88% { opacity: 1; transform: none; } 96%,100% { opacity: 0; } }
@keyframes pop-46-52 { 0%,46% { opacity: 0; transform: translateY(8px) scale(0.9); } 52%,88% { opacity: 1; transform: none; } 96%,100% { opacity: 0; } }
@keyframes show-12-28 { 0%,12% { opacity: 0; } 14%,26% { opacity: 1; } 28%,100% { opacity: 0; } }

/* démos chat + SAV */
.demo-chat, .demo-sav { padding: 1rem; }
.chat-b {
  position: absolute;
  max-width: 70%;
  padding: 0.5rem 0.8rem;
  border-radius: 12px;
  line-height: 1.35;
}
.demo .b1 {
  top: 12%; right: 6%;
  background: #26262e;
  border-bottom-right-radius: 4px;
  animation: pop-5-10 8s ease infinite;
}
.demo .b2 {
  top: 42%; left: 6%;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-bottom-left-radius: 4px;
  animation: pop-30-36 8s ease infinite;
}
.demo-sav .b2 {
  background: rgba(74, 212, 106, 0.12);
  border-color: rgba(74, 212, 106, 0.25);
}
.chat-typing {
  position: absolute;
  top: 44%; left: 6%;
  display: flex; gap: 4px;
  padding: 0.55rem 0.7rem;
  background: #202027;
  border-radius: 12px;
  animation: show-12-28 8s ease infinite;
}
.chat-typing i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--text-dim);
  animation: typing-dot 0.9s ease-in-out infinite;
}
.chat-typing i:nth-child(2) { animation-delay: 0.15s; }
.chat-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-dot { 0%,100% { opacity: 0.25; } 50% { opacity: 1; } }
.chat-chip {
  position: absolute;
  bottom: 10%; left: 50%;
  padding: 0.35rem 0.8rem;
  background: var(--accent);
  color: #05161b;
  font-weight: 700;
  font-size: 0.72rem;
  border-radius: 999px;
  animation: pop-46-52 8s ease infinite;
  transform: translateX(-50%);
}
@keyframes pop-46-52 { 0%,46% { opacity: 0; transform: translateX(-50%) translateY(8px) scale(0.9); } 52%,88% { opacity: 1; transform: translateX(-50%); } 96%,100% { opacity: 0; transform: translateX(-50%); } }
.demo-clock {
  position: absolute;
  top: 8%; left: 6%;
  color: var(--text-dim);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

/* démo standard téléphonique */
.demo-call { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
.call-pill, .result-pill {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.call-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.call-pill { animation: call-in 8s ease infinite; }
@keyframes call-in { 0%,5% { opacity: 0; transform: translateY(8px); } 10%,56% { opacity: 1; transform: none; } 62%,100% { opacity: 0; } }
.wave { display: flex; gap: 5px; height: 34px; align-items: center; animation: wave-win 8s ease infinite; }
.wave i {
  width: 5px; height: 100%; border-radius: 3px;
  background: var(--accent);
  animation: wave-bar 0.5s ease-in-out infinite alternate;
  transform-origin: center;
}
.wave i:nth-child(2) { animation-delay: 0.1s; }
.wave i:nth-child(3) { animation-delay: 0.2s; }
.wave i:nth-child(4) { animation-delay: 0.3s; }
.wave i:nth-child(5) { animation-delay: 0.4s; }
@keyframes wave-bar { from { transform: scaleY(0.3); } to { transform: scaleY(1); } }
@keyframes wave-win { 0%,8% { opacity: 0; } 12%,54% { opacity: 1; } 58%,100% { opacity: 0; } }
.result-pill {
  position: absolute;
  bottom: 14%;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  animation: result-in 8s ease infinite;
}
@keyframes result-in { 0%,58% { opacity: 0; transform: translateY(6px); } 65%,88% { opacity: 1; transform: none; } 96%,100% { opacity: 0; } }

/* démo devis-factures */
.demo-doc { display: flex; align-items: center; justify-content: center; }
.doc {
  width: 56%;
  padding: 0.9rem;
  background: #f2f2f4;
  color: #17171c;
  border-radius: 8px;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.doc-head { font-weight: 700; font-size: 0.78rem; }
.dl { height: 7px; border-radius: 4px; background: #c9c9d2; transform: scaleX(0); transform-origin: left; }
.dl-1 { animation: dl-1 8s ease infinite; }
.dl-2 { width: 85%; animation: dl-2 8s ease infinite; }
.dl-3 { width: 92%; animation: dl-3 8s ease infinite; }
.dl-4 { width: 70%; animation: dl-4 8s ease infinite; }
@keyframes dl-1 { 0%,5% { transform: scaleX(0); } 12%,100% { transform: scaleX(1); } }
@keyframes dl-2 { 0%,14% { transform: scaleX(0); } 21%,100% { transform: scaleX(1); } }
@keyframes dl-3 { 0%,23% { transform: scaleX(0); } 30%,100% { transform: scaleX(1); } }
@keyframes dl-4 { 0%,32% { transform: scaleX(0); } 39%,100% { transform: scaleX(1); } }
.doc-total { font-size: 0.8rem; animation: total-pop 8s ease infinite; }
@keyframes total-pop { 0%,42% { opacity: 0; transform: scale(0.9); } 48%,100% { opacity: 1; transform: none; } }
.doc-badge {
  position: absolute;
  top: 12%; right: 10%;
  padding: 0.35rem 0.8rem;
  background: var(--accent);
  color: #05161b;
  font-weight: 700;
  font-size: 0.72rem;
  border-radius: 999px;
  animation: badge-in 8s ease infinite;
}
@keyframes badge-in { 0%,55% { opacity: 0; transform: translateY(6px); } 60%,88% { opacity: 1; transform: none; } 96%,100% { opacity: 0; } }

/* démo relances */
.demo-relance { display: flex; align-items: center; justify-content: center; }
.invoice {
  padding: 0.6rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.mail {
  position: absolute;
  left: 30%; top: 28%;
  font-style: normal;
  color: var(--accent);
  display: flex; align-items: center; gap: 0.3rem;
  opacity: 0;
}
.mail span {
  font-size: 0.68rem;
  padding: 0.1rem 0.4rem;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 999px;
}
.mail-2 { top: 62%; }
.mail-1 { animation: mail-fly-1 8s ease infinite; }
.mail-2 { animation: mail-fly-2 8s ease infinite; }
@keyframes mail-fly-1 { 0%,10% { opacity: 0; transform: none; } 12% { opacity: 1; } 20%,100% { opacity: 0; transform: translateX(90px); } }
@keyframes mail-fly-2 { 0%,35% { opacity: 0; transform: none; } 37% { opacity: 1; } 45%,100% { opacity: 0; transform: translateX(90px); } }
.pill-swap { position: absolute; bottom: 14%; left: 50%; transform: translateX(-50%); }
.pill-swap span {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}
.pill-late { background: rgba(255, 122, 122, 0.14); color: #ff9a9a; animation: late-out 8s ease infinite; }
.pill-paid { background: var(--accent); color: #05161b; animation: paid-in 8s ease infinite; }
@keyframes late-out { 0%,60% { opacity: 1; } 66%,100% { opacity: 0; } }
@keyframes paid-in { 0%,60% { opacity: 0; transform: translateX(-50%) scale(0.6); } 66%,88% { opacity: 1; transform: translateX(-50%) scale(1); } 96%,100% { opacity: 0; transform: translateX(-50%) scale(1); } }

/* démo synchronisation */
.demo-sync { }
.tool {
  position: absolute;
  width: 74px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.75rem;
  color: var(--text);
}
.tool-a { left: 12%; top: 16%; animation: tool-pop-a 8s ease infinite; }
.tool-b { right: 12%; top: 16%; animation: tool-pop-b 8s ease infinite; }
.tool-c { left: 50%; bottom: 12%; transform: translateX(-50%); animation: tool-pop-c 8s ease infinite; }
@keyframes tool-pop-a { 0%,80% { transform: scale(1); } 82% { transform: scale(1.06); } 85%,100% { transform: scale(1); } }
@keyframes tool-pop-b { 0%,28% { transform: scale(1); } 30% { transform: scale(1.06); } 33%,100% { transform: scale(1); } }
@keyframes tool-pop-c { 0%,54% { transform: translateX(-50%) scale(1); } 56% { transform: translateX(-50%) scale(1.06); } 59%,100% { transform: translateX(-50%) scale(1); } }
.pkt {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  opacity: 0;
}
.pkt-1 { animation: pkt-ab 8s linear infinite; }
.pkt-2 { animation: pkt-bc 8s linear infinite; }
.pkt-3 { animation: pkt-ca 8s linear infinite; }
@keyframes pkt-ab { 0%,10% { opacity: 0; transform: translate(20%, 0); left: 22%; top: 24%; } 12% { opacity: 1; } 26% { opacity: 1; } 28%,100% { opacity: 0; transform: translate(2000%, 0); } }
@keyframes pkt-bc { 0%,36% { opacity: 0; transform: translate(0, 0); left: 76%; top: 26%; } 38% { opacity: 1; } 52% { opacity: 1; } 54%,100% { opacity: 0; transform: translate(-1400%, 500%); } }
@keyframes pkt-ca { 0%,62% { opacity: 0; transform: translate(0, 0); left: 48%; top: 74%; } 64% { opacity: 1; } 78% { opacity: 1; } 80%,100% { opacity: 0; transform: translate(-1800%, -450%); } }

/* démo tri des demandes */
.demo-lead { display: flex; align-items: center; justify-content: flex-start; padding: 0 6%; }
.lead-card {
  position: relative;
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  animation: lead-slide 8s ease infinite;
}
@keyframes lead-slide {
  0%,5% { opacity: 0; transform: translateY(8px); }
  10%,40% { opacity: 1; transform: none; }
  50%,88% { opacity: 1; transform: translateX(48px); }
  96%,100% { opacity: 0; transform: translateX(48px); }
}
.ring { width: 34px; height: 34px; transform: rotate(-90deg); }
.ring circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: ring-fill 8s ease infinite;
}
@keyframes ring-fill { 0%,12% { stroke-dashoffset: 1; } 30%,100% { stroke-dashoffset: 0.13; } }
.score {
  position: absolute;
  right: 1.25rem;
  font-size: 0.7rem;
  color: var(--accent);
  animation: score-in 8s ease infinite;
}
@keyframes score-in { 0%,12% { opacity: 0; } 30%,88% { opacity: 1; } 96%,100% { opacity: 0; } }
.lead-col {
  position: absolute;
  right: 6%;
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 10px;
  color: var(--accent);
  font-size: 0.75rem;
}
.lead-check { opacity: 0; animation: check-in 8s ease infinite; font-style: normal; }
@keyframes check-in { 0%,52% { opacity: 0; transform: scale(0.5); } 56%,88% { opacity: 1; transform: scale(1); } 96%,100% { opacity: 0; } }

/* démo avis clients */
.demo-avis { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.9rem; }
.avis-pill {
  padding: 0.4rem 0.9rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--text-dim);
  animation: pop-5-10 8s ease infinite;
}
.stars { display: flex; gap: 0.4rem; }
.stars i { position: relative; width: 22px; height: 22px; font-style: normal; }
.stars i::before, .stars i::after {
  content: "★";
  position: absolute;
  inset: 0;
  font-size: 22px;
  line-height: 1;
}
.stars i::before { color: #33333c; }
.stars i::after { color: var(--accent); opacity: 0; text-shadow: 0 0 12px var(--accent-glow); }
.stars i:nth-child(1)::after { animation: star-1 8s ease infinite; }
.stars i:nth-child(2)::after { animation: star-2 8s ease infinite; }
.stars i:nth-child(3)::after { animation: star-3 8s ease infinite; }
.stars i:nth-child(4)::after { animation: star-4 8s ease infinite; }
.stars i:nth-child(5)::after { animation: star-5 8s ease infinite; }
@keyframes star-1 { 0%,15% { opacity: 0; } 19%,88% { opacity: 1; } 96%,100% { opacity: 0; } }
@keyframes star-2 { 0%,20% { opacity: 0; } 24%,88% { opacity: 1; } 96%,100% { opacity: 0; } }
@keyframes star-3 { 0%,25% { opacity: 0; } 29%,88% { opacity: 1; } 96%,100% { opacity: 0; } }
@keyframes star-4 { 0%,30% { opacity: 0; } 34%,88% { opacity: 1; } 96%,100% { opacity: 0; } }
@keyframes star-5 { 0%,35% { opacity: 0; } 39%,88% { opacity: 1; } 96%,100% { opacity: 0; } }
.note-swap { position: relative; height: 1.2rem; width: 10rem; }
.note-swap span {
  position: absolute; inset: 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.note-b { color: var(--accent); }
.note-a { animation: note-a 8s ease infinite; }
.note-b { animation: note-b 8s ease infinite; }
@keyframes note-a { 0%,55% { opacity: 1; } 62%,100% { opacity: 0; } }
@keyframes note-b { 0%,55% { opacity: 0; } 62%,88% { opacity: 1; } 96%,100% { opacity: 0; } }

/* ---------- 02 · Workflow épinglé ---------- */
.wf-wrap { position: relative; height: 380vh; background: var(--bg); }
.wf-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wf-scene {
  position: absolute;
  inset: 0;
  transform: scale(1.12);
  will-change: transform;
}
.wf-links { position: absolute; inset: 0; width: 100%; height: 100%; transform: translateZ(0); }
.wf-link {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  filter: drop-shadow(0 0 6px var(--accent-glow));
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.wf-pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 0.14 0.86;
  stroke-dashoffset: 1.14;
  opacity: 0;
  filter: drop-shadow(0 0 8px var(--accent));
}
.is-live #p1 { animation: run-c1 4.5s linear infinite; }
.is-live #p2 { animation: run-c2 4.5s linear infinite; }
.is-live #p3 { animation: run-c3 4.5s linear infinite; }
.is-live #p4 { animation: run-c4 4.5s linear infinite; }
.is-live #p5 { animation: run-c5 4.5s linear infinite; }
@keyframes run-c1 { 0% { stroke-dashoffset: 1.14; opacity: 0; } 1% { opacity: 1; } 12% { opacity: 1; } 13.3% { stroke-dashoffset: 0; opacity: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes run-c2 { 0%,13.3% { stroke-dashoffset: 1.14; opacity: 0; } 14.3% { opacity: 1; } 25.6% { opacity: 1; } 26.6% { stroke-dashoffset: 0; opacity: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes run-c3 { 0%,26.6% { stroke-dashoffset: 1.14; opacity: 0; } 27.6% { opacity: 1; } 45.6% { opacity: 1; } 46.6% { stroke-dashoffset: 0; opacity: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes run-c4 { 0%,46.6% { stroke-dashoffset: 1.14; opacity: 0; } 47.6% { opacity: 1; } 59% { opacity: 1; } 60% { stroke-dashoffset: 0; opacity: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes run-c5 { 0%,60% { stroke-dashoffset: 1.14; opacity: 0; } 61% { opacity: 1; } 72.3% { opacity: 1; } 73.3% { stroke-dashoffset: 0; opacity: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }

.wf-node {
  position: absolute;
  width: 16.6%;
  min-width: 170px;
  padding: 0.8rem 0.9rem 0.8rem 1.6rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.3;
  transform: translate(-50%, -50%) translateY(14px) scale(0.9);
  opacity: 0;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
#n1 { left: 11.7%; top: 25%; }
#n2 { left: 41.7%; top: 25%; }
#n3 { left: 71.7%; top: 25%; }
#n4 { left: 71.7%; top: 75%; }
#n5 { left: 41.7%; top: 75%; }
#n6 { left: 11.7%; top: 75%; }
.wf-node em {
  display: block;
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.2rem;
}
.wf-node i {
  display: block;
  font-style: normal;
  color: var(--text-dim);
  font-size: 0.73rem;
  margin-top: 0.2rem;
}
.wf-dot {
  position: absolute;
  left: 0.65rem; top: 1rem;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  opacity: 0.35;
}
.is-live .wf-dot { animation: breathe 2.4s ease-in-out infinite alternate; }
.is-live #n2 .wf-dot { animation-delay: 0.3s; }
.is-live #n3 .wf-dot { animation-delay: 0.6s; }
.is-live #n4 .wf-dot { animation-delay: 0.9s; }
.is-live #n5 .wf-dot { animation-delay: 1.2s; }
.is-live #n6 .wf-dot { animation-delay: 1.5s; }
@keyframes breathe { from { opacity: 0.55; } to { opacity: 1; } }
.wf-count {
  display: inline-block;
  margin-top: 0.45rem;
  padding: 0.15rem 0.5rem;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.wf-caption .zoom-title { font-size: clamp(2.2rem, 5vw, 4.4rem); }
.link-tag {
  position: absolute;
  left: 56.5%; top: 75%;
  transform: translate(-50%, -50%) translateY(-1.6rem);
  padding: 0.15rem 0.55rem;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.66rem;
  color: var(--text-dim);
  opacity: 0;
  white-space: nowrap;
}

/* ---------- Calculateur ---------- */
.calc { padding: 16vh 6vw; }
.calc-body {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 3rem;
  max-width: 68rem;
  margin: 4rem auto 0;
  align-items: start;
}
.calc-form { display: flex; flex-direction: column; gap: 1.6rem; }
.calc-champ label { display: block; font-size: 0.95rem; margin-bottom: 0.5rem; }
.range-row { display: flex; align-items: center; gap: 1rem; }
.range-row output {
  min-width: 2.6ch;
  text-align: right;
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
input[type="range"] {
  flex: 1;
  appearance: none;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 2px;
  background: var(--piste);
  outline-offset: 6px;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
  border: none;
  cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
  border: none;
  cursor: grab;
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--piste); }
.stepper { display: flex; align-items: center; gap: 0.6rem; }
.step-btn {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--border-champ);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
}
.stepper input[type="number"] {
  width: 5rem;
  height: 44px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--border-champ);
  border-radius: 10px;
  color: var(--accent);
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
.stepper-unit { color: var(--text-dim); font-size: 0.9rem; }
.champ-aide { color: var(--text-dim); font-size: 0.8rem; margin-top: 0.5rem; }

.calc-result {
  position: relative;
  text-align: center;
  padding: 2.4rem 2rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.calc-glow {
  position: absolute;
  inset: 20% 15%;
  border-radius: 50%;
  box-shadow: 0 0 90px 30px var(--accent-glow);
  opacity: 0.3;
  pointer-events: none;
}
.calc-num {
  position: relative;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.calc-num #calc-h { display: inline-block; min-width: 2ch; text-align: right; }
.calc-sub { color: var(--text-dim); margin-top: 0.2rem; }
.calc-eur { position: relative; margin-top: 1rem; font-size: 1.05rem; }
.calc-eur strong { color: var(--text); font-variant-numeric: tabular-nums; }
.gauge {
  height: 6px;
  margin: 1.4rem 0 0.6rem;
  border-radius: 3px;
  background: var(--piste);
  overflow: hidden;
}
.gauge-fill {
  display: block;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.calc-note { color: var(--text-dim); font-size: 0.8rem; margin-top: 0.8rem; }
.calc-cta { margin-top: 1.6rem; }

/* ---------- 03 · Tableau de bord épinglé ---------- */
.dash-wrap { position: relative; height: 400vh; background: var(--bg); }
.dash-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dash-move {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.dash-scene {
  position: absolute;
  inset: 0;
  transform-origin: 81% 37%;
  transform: scale(2.4);
  will-change: transform;
}
.dash-grid {
  position: absolute;
  inset: 0;
  padding: 12vh 3vw 10vh;
  padding-right: calc(3vw + 430px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto 1fr;
  gap: 1rem;
}
.kpi {
  position: relative;
  padding: 1rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  opacity: 0.22;
}
.kpi em {
  display: block;
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}
.kpi b {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.kpi i {
  display: block;
  font-style: normal;
  color: var(--accent);
  font-size: 0.75rem;
  margin-top: 0.2rem;
}
.kpi-large b { color: var(--accent); font-size: 2rem; text-shadow: 0 0 30px var(--accent-glow); }
.live-dot {
  position: absolute;
  top: 0.9rem; right: 0.9rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.is-live .live-dot { animation: live-pulse 1.8s ease-in-out infinite alternate; }
@keyframes live-pulse { from { opacity: 0.4; } to { opacity: 1; } }
.chart {
  grid-column: span 2;
  display: flex;
  align-items: flex-end;
  gap: 8%;
  padding: 1.2rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  opacity: 0.22;
  min-height: 130px;
}
.cbar {
  flex: 1;
  height: 100%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--accent) 25%, transparent), var(--accent));
  transform: scaleY(var(--h));
  transform-origin: bottom;
}
.feed {
  grid-column: span 2;
  position: relative;
  list-style: none;
  padding: 0.8rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  opacity: 0.22;
  min-height: 130px;
}
.feed li {
  position: absolute;
  left: 1.1rem; right: 1.1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  transform: translateY(calc(var(--slot, 0) * 38px));
}
.feed li:nth-child(1) { --slot: 0; color: var(--text); }
.feed li:nth-child(2) { --slot: 1; }
.feed li:nth-child(3) { --slot: 2; }
.feed li:nth-child(4) { --slot: 3; }
.feed li:nth-child(5) { --slot: 4; }
/* le glissement des slots ne s'active qu'une fois la scène vivante,
   pour ne pas entrer en conflit avec l'apparition initiale */
.is-live .feed li { transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease; }
.is-final .phone::after { opacity: 1; transition: opacity 0.6s ease; }

.phone {
  position: absolute;
  right: 3vw;
  top: 14%;
  width: 400px;
  height: 62vh;
  min-height: 380px;
  background: #101014;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 34px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.phone::before {
  content: "";
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 22px;
  background: #060608;
  border-radius: 999px;
}
.phone::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 34px;
  box-shadow: 0 0 60px var(--accent-glow);
  opacity: 0;
}
.phone-screen {
  position: absolute;
  inset: 8px;
  border-radius: 28px;
  background: linear-gradient(160deg, #16161c, #0c0c10);
  overflow: hidden;
  padding: 3rem 1rem 1rem;
}
.phone-clock {
  text-align: center;
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.notif {
  padding: 0.8rem 0.9rem;
  background: rgba(34, 34, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  backdrop-filter: blur(4px);
}
.notif-app {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}
.notif-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: live-pulse 2s ease-in-out infinite alternate;
}
.notif b { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; }
.notif span { font-size: 0.82rem; color: var(--text-dim); line-height: 1.4; }
.dash-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 50% 46%, transparent 17%, rgba(10, 10, 12, 0.96) 52%);
  pointer-events: none;
}

/* ---------- Déroulé ---------- */
.steps { padding: 14vh 6vw; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 62rem;
  margin: 4rem auto 0;
}
.step {
  padding: 1.8rem 1.6rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent);
  font-weight: 700;
}
.step h3 { margin-top: 1rem; font-size: 1.2rem; }
.step p { margin-top: 0.5rem; color: var(--text-dim); font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq { padding: 10vh 6vw 14vh; }
.faq-list { max-width: 46rem; margin: 3rem auto 0; }
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.3rem 2.5rem 1.3rem 0.2rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.4rem; top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 400;
  transition: transform 0.25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary h3 { display: inline; font-size: 1.05rem; font-weight: 500; }
.faq details p {
  padding: 0 2.5rem 1.4rem 0.2rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ---------- Closing + formulaire ---------- */
.closing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12vh 1.5rem 4rem;
  background:
    radial-gradient(ellipse 60% 40% at 50% 110%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    var(--bg);
}
.closing-title {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
}
.closing-sub {
  max-width: 44rem;
  margin: 0.4rem auto 3rem;
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.6;
}
.audit-box {
  width: 100%;
  max-width: 34rem;
  margin-top: 3.5rem;
  padding: 2.4rem 2.2rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-align: left;
}
.audit-box h3 { font-size: 1.4rem; letter-spacing: -0.01em; }
.audit-reassurance { margin-top: 0.8rem; color: var(--text-dim); font-size: 0.95rem; }
.audit-form { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 1.2rem; }
.form-champ label { display: block; font-size: 0.92rem; margin-bottom: 0.45rem; }
.obligatoire, .facultatif { color: var(--text-dim); font-size: 0.8rem; }
.form-champ input {
  width: 100%;
  height: 52px;
  padding: 0 1rem;
  background: var(--panel-2);
  border: 1px solid var(--border-champ);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
}
.form-champ input[aria-invalid="true"] { border-color: #d96a6a; }
.form-erreur {
  margin-top: 0.4rem;
  color: #ff9a9a;
  font-size: 0.85rem;
}
.form-erreur::before { content: "⚠ "; }
.form-erreur-globale { margin-top: 0; }
.audit-form .cta-big { margin-top: 0.4rem; width: 100%; text-align: center; }
.audit-form .cta-big[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.form-confiance { text-align: center; margin-top: 0.2rem; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-succes { margin-top: 1.8rem; padding: 1.6rem; background: color-mix(in srgb, var(--accent) 8%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 12px; }
.succes-titre { font-weight: 700; font-size: 1.15rem; margin-bottom: 0.4rem; }
.form-succes p { color: var(--text-dim); font-size: 0.95rem; }
.form-succes .succes-titre { color: var(--text); }

.proto-note {
  margin-top: 8rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  opacity: 0.6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html.js .reveal { opacity: 0; transform: translateY(30px); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 5rem 6vw 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  max-width: 68rem;
  margin: 0 auto;
}
.footer-baseline { margin-top: 0.8rem; color: var(--text-dim); font-size: 0.9rem; max-width: 22rem; }
.footer-col-titre {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.footer-nav, .footer-legal { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; }
.footer-nav a, .footer-legal a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.25rem 0;
}
.footer-nav a:hover, .footer-legal a:hover { color: var(--text); }
.anim-toggle {
  margin-top: 0.8rem;
  padding: 0.45rem 0.9rem;
  background: transparent;
  border: 1px solid var(--border-champ);
  border-radius: 999px;
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 0.8rem;
  cursor: pointer;
}
.anim-toggle[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.footer-rgpd, .footer-copy {
  max-width: 68rem;
  margin: 2.5rem auto 0;
  color: var(--text-dim);
  font-size: 0.8rem;
  opacity: 0.8;
}
.footer-copy { margin-top: 1rem; opacity: 0.6; }

/* ---------- Barre CTA mobile ---------- */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}
.mobile-cta.visible { transform: translateY(0); }
.mobile-cta .cta { display: block; text-align: center; }
@media (min-width: 901px) { .mobile-cta { display: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1250px) {
  .hero-chips .chip { display: none; }
  .hero-chips .chip-keep { display: flex; }
  .rail-left .chip-keep { --y: 12vh !important; left: 1.5rem; }
  .rail-right .chip-keep { --y: 80vh !important; right: 1.5rem; }
  .chip-rail { flex-basis: 0; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .site-header { padding: 0.8rem 1.2rem; }
  .rail-right .chip-keep { display: none; }

  .stats { grid-template-columns: 1fr; padding: 14vh 8vw; }

  .module-grid { grid-template-columns: 1fr; }
  .modules { padding: 10vh 6vw; }

  /* 01 : piste raccourcie, 6 cartes, offsets réduits de moitié */
  .zoom-wrap { height: 220vh; }
  .task-card { width: 40vw; min-width: 150px; }
  .tc-5, .tc-8 { display: none; }
  .tc-1 { left: 6vw;  top: 12vh; --ix: -8vw; --iy: -5vh; --ir: -14deg; }
  .tc-2 { left: 54vw; top: 12vh; --ix: 7vw;  --iy: -6vh; --ir: 11deg; }
  .tc-3 { left: 6vw;  top: 38vh; --ix: -6vw; --iy: 6vh;  --ir: 8deg; }
  .tc-4 { left: 54vw; top: 38vh; --ix: 9vw;  --iy: 5vh;  --ir: -9deg; }
  .tc-6 { left: 6vw;  top: 64vh; --ix: 3vw;  --iy: -8vh; --ir: -6deg; }
  .tc-7 { left: 54vw; top: 64vh; --ix: 5vw;  --iy: 8vh;  --ir: 13deg; }

  /* 02 : colonne verticale, pas d'épinglage (géré aussi côté JS) */
  .wf-wrap { height: auto; padding: 10vh 6vw; }
  .wf-sticky { position: static; height: auto; overflow: visible; display: block; }
  .wf-scene {
    position: relative;
    inset: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.2rem;
    padding: 2rem 0;
  }
  .wf-links { display: none; }
  .wf-node {
    position: relative;
    left: auto !important; top: auto !important;
    width: 100%;
    max-width: 20rem;
    transform: none;
  }
  .wf-node:not(:last-of-type)::after {
    content: "";
    position: absolute;
    left: 50%; bottom: -2.2rem;
    width: 2px; height: 2.2rem;
    background: linear-gradient(var(--accent), transparent);
    opacity: 0.5;
  }
  .link-tag { position: relative; left: auto; top: auto; transform: none; order: 5; }
  .wf-caption { position: relative; opacity: 1; transform: none; margin-top: 3rem; }
  .wf-sticky::after { display: none; }

  /* calculateur : une colonne */
  .calc-body { grid-template-columns: 1fr; gap: 2rem; }

  /* 03 : version courte gérée en JS ; ajustements visuels */
  .dash-wrap { height: 220vh; }
  .dash-scene { transform-origin: 50% 40%; }
  .dash-grid {
    padding: 10vh 4vw;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }
  .chart, .feed { grid-column: span 2; min-height: 110px; }
  .phone {
    right: 50%;
    transform: translateX(50%);
    top: 16%;
    width: min(320px, 78vw);
    height: 54vh;
  }
  .dash-veil { background: radial-gradient(circle at 50% 30%, transparent 16%, rgba(10, 10, 12, 0.96) 55%); }

  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .audit-box { padding: 1.8rem 1.4rem; }
}

/* ---------- Réduction des animations ---------- */
html.anim-reduite .chip,
html.anim-reduite .scroll-hint span,
html.anim-reduite .demo *,
html.anim-reduite .wf-pulse,
html.anim-reduite .wf-dot,
html.anim-reduite .live-dot,
html.anim-reduite .notif-dot { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  .chip, .scroll-hint span, .demo *, .wf-pulse, .wf-dot, .live-dot, .notif-dot { animation: none !important; }
  html.js .hero-kicker, html.js .hero-sub, html.js .hero-ctas, html.js .hero-chips .chip { opacity: 1; }
  html.js .hero-title .line-in { transform: none; }
  html.js .reveal { opacity: 1; transform: none; }
  .zoom-wrap, .wf-wrap, .dash-wrap { height: auto; min-height: 100vh; }
  .zoom-scene { transform: none; }
  .task-card { transform: none; }
  .done-badge { opacity: 1; transform: none; }
  .flow-path, .wf-link { stroke-dashoffset: 0; }
  .wf-node { opacity: 1; transform: translate(-50%, -50%); }
  .zoom-caption, .wf-caption, .dash-caption { opacity: 1; transform: none; }
  .zoom-sticky, .wf-sticky, .dash-sticky { position: relative; height: auto; min-height: 100vh; }
  .dash-scene { transform: none; }
  .kpi, .chart, .feed { opacity: 1; }
  .cbar { transform: scaleY(var(--h)); }
  .dash-veil { opacity: 0; }
  .mobile-cta { transition: none; }
}

@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  .wf-node { opacity: 0; transform: translateY(14px); }
}

/* ==========================================================================
   V2 · Direction artistique enrichie : Clash Display, palette du logo,
   décor (aurora, grain, sparkles, marquee), multi-pages.
   Bloc d'overrides : chargé après les règles de base, il gagne la cascade.
   ========================================================================== */

/* ---------- Typographie display ---------- */
h1, h2, h3,
.hero-title, .zoom-title, .section-head h2, .closing-title,
.stat-num, .calc-num, .page-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
}
.hero-title, .zoom-title, .closing-title, .page-hero h1 { font-weight: 700; word-spacing: 0.12em; }
.section-head h2, .cta-band h2 { word-spacing: 0.1em; }
.hero-title { letter-spacing: -0.015em; }
.zoom-title, .closing-title, .section-head h2 { letter-spacing: -0.01em; }

/* ---------- Logo dans le header et le footer ---------- */
.logo-lien { display: inline-flex; align-items: center; }
.logo-img { height: 40px; width: auto; display: block; }
.site-footer .logo-img { height: 34px; }

.main-nav a[aria-current="page"] { color: var(--accent); }

/* ---------- CTA v2 : dégradé de marque ---------- */
.cta {
  background: var(--grad-brand);
  color: #071019;
  box-shadow: 0 0 26px var(--violet-glow);
}
.cta:hover { box-shadow: 0 0 44px var(--violet-glow), 0 0 24px var(--accent-glow); }
.cta-ghost { background: transparent; color: var(--text); box-shadow: none; }

/* ---------- Texte en dégradé ---------- */
.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Aurora : nappes de couleur en fond ---------- */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.aurora i {
  position: absolute;
  width: 46vw; height: 46vw;
  min-width: 420px; min-height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  will-change: transform;
}
.aurora .a1 {
  left: -12vw; top: -14vw;
  background: radial-gradient(circle, rgba(47, 27, 212, 0.55), transparent 65%);
  animation: derive-a 34s ease-in-out infinite alternate;
}
.aurora .a2 {
  right: -14vw; bottom: -18vw;
  background: radial-gradient(circle, rgba(127, 208, 255, 0.34), transparent 65%);
  animation: derive-b 40s ease-in-out infinite alternate;
}
.aurora .a3 {
  left: 30vw; top: 40vh;
  width: 30vw; height: 30vw;
  background: radial-gradient(circle, rgba(108, 93, 240, 0.3), transparent 60%);
  animation: derive-a 46s ease-in-out infinite alternate-reverse;
}
@keyframes derive-a { from { transform: translate(0, 0) scale(1); } to { transform: translate(6vw, 4vh) scale(1.12); } }
@keyframes derive-b { from { transform: translate(0, 0) scale(1.08); } to { transform: translate(-5vw, -4vh) scale(1); } }

/* ---------- Grain : tue le rendu plat ---------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 95;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Sparkles : le motif étoile du logo ---------- */
.sparkle {
  position: absolute;
  width: 22px; height: 22px;
  pointer-events: none;
  color: var(--accent);
  opacity: 0.7;
  animation: scintille 5.5s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.sparkle.violet { color: var(--violet); }
.sparkle.grand { width: 34px; height: 34px; }
.sparkle svg { width: 100%; height: 100%; display: block; fill: currentColor; filter: drop-shadow(0 0 8px currentColor); }
@keyframes scintille {
  0%, 100% { transform: scale(0.75) rotate(0deg); opacity: 0.35; }
  50% { transform: scale(1.1) rotate(12deg); opacity: 0.9; }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 1.1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.marquee-piste {
  display: flex;
  gap: 3.2rem;
  width: max-content;
  animation: defile 34s linear infinite;
}
.marquee span {
  display: flex;
  align-items: center;
  gap: 3.2rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}
.marquee span::after {
  content: "✦";
  color: var(--violet);
  font-size: 0.8rem;
}
@keyframes defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Bordures en dégradé sur les cartes clés ---------- */
.carte-grad { position: relative; }
.carte-grad::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(108, 93, 240, 0.55), rgba(127, 208, 255, 0.28) 45%, transparent 75%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* ---------- Numéros fantômes derrière les sections ---------- */
.section-head { position: relative; }
.num-fantome {
  position: absolute;
  left: 50%; top: -0.55em;
  transform: translateX(-50%);
  z-index: -1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(7rem, 18vw, 14rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(23, 23, 40, 0.14);
  pointer-events: none;
  user-select: none;
}

/* ---------- Modules : hover riche + inclinaison ---------- */
.module {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  transform-style: preserve-3d;
}
.module:hover {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(108, 93, 240, 0.12);
}

/* ---------- Pages intérieures : héro compact ---------- */
.page-hero {
  position: relative;
  padding: 11rem 1.5rem 5rem;
  text-align: center;
  overflow: hidden;
}
.page-hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 56rem;
  margin: 0 auto;
}
.page-hero .section-intro { max-width: 38rem; margin-left: auto; margin-right: auto; }

/* mot par mot (rempli par le JS) */
.mot { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.mot-in { display: inline-block; }
html.js .reveal-mots .mot-in { transform: translateY(115%); }

/* ---------- Bande CTA pré-footer ---------- */
.cta-band {
  position: relative;
  margin: 8vh 6vw 10vh;
  padding: 4.5rem 2rem;
  text-align: center;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 70% 90% at 20% 110%, rgba(47, 27, 212, 0.35), transparent 60%),
    radial-gradient(ellipse 60% 80% at 85% -10%, rgba(127, 208, 255, 0.16), transparent 55%),
    var(--panel);
  overflow: hidden;
}
.cta-band h2 {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  letter-spacing: -0.01em;
  max-width: 40rem;
  margin: 0 auto 1.2rem;
}
.cta-band p { color: var(--text-dim); margin-bottom: 2rem; }

/* ---------- Aperçu solutions (accueil) ---------- */
.apercu-suite { text-align: center; margin-top: 3rem; }
.lien-suite {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.6rem 0.4rem;
}
.lien-suite::after { content: "→"; transition: transform 0.25s; }
.lien-suite:hover::after { transform: translateX(6px); }

/* ---------- Récap calculateur sur la page audit ---------- */
.calc-recap {
  display: none;
  margin: 1.2rem auto 0;
  padding: 0.6rem 1.1rem;
  width: fit-content;
  border-radius: 999px;
  background: rgba(108, 93, 240, 0.14);
  border: 1px solid rgba(108, 93, 240, 0.4);
  color: var(--text);
  font-size: 0.9rem;
}
.calc-recap.visible { display: block; }

/* ---------- Réductions de mouvement : décor coupé ---------- */
html.anim-reduite .aurora i,
html.anim-reduite .sparkle,
html.anim-reduite .marquee-piste { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .aurora i, .sparkle, .marquee-piste { animation: none !important; }
  html.js .reveal-mots .mot-in { transform: none; }
}

@media (max-width: 900px) {
  .logo-img { height: 32px; }
  .num-fantome { font-size: clamp(5rem, 26vw, 9rem); }
  .page-hero { padding-top: 8rem; }
  .cta-band { margin: 6vh 4vw; padding: 3rem 1.2rem; }
}

/* le dégradé de texte doit être porté par chaque mot masqué, sinon
   background-clip: text ne traverse pas les inline-blocks imbriqués */
.grad-text .mot-in {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   V3 · Différenciation : la simplicité radicale
   Charte de simplicité + dictionnaire anti-jargon (cartes à retourner)
   ========================================================================== */

/* ---------- Charte de simplicité ---------- */
.simplicite { padding: 14vh 6vw 10vh; }
.engagement {
  position: relative;
  max-width: 52rem;
  margin: 3.5rem auto 0;
  padding: 2.4rem 2.6rem;
  border-radius: 20px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 120% at 50% -30%, rgba(108, 93, 240, 0.18), transparent 60%),
    var(--panel);
}
.engagement-regle {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.engagement-regle .grad-text { font-weight: 700; }
.engagement-detail { margin-top: 0.9rem; color: var(--text-dim); font-size: 0.95rem; }
.signature-marque {
  margin-top: 3rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--text);
}
.signature-marque .grad-text { font-weight: 700; }

/* ---------- Dictionnaire anti-jargon : cartes à retourner ---------- */
.jargon { padding: 12vh 6vw 14vh; }
.flip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  max-width: 62rem;
  margin: 3.5rem auto 0;
}
.flip {
  position: relative;
  height: 12rem;
  perspective: 1000px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  color: var(--text);
}
.flip-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0.1, 0.2, 1);
}
.flip:hover .flip-inner,
.flip:focus-visible .flip-inner,
.flip.est-retourne .flip-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 16px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.flip-avant {
  background: var(--panel);
  border: 1px solid var(--border);
}
.flip-avant b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}
.flip-avant .flip-indice {
  color: var(--text-dim);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.flip-avant .flip-indice::after { content: "↻"; color: var(--accent); font-size: 1rem; }
.flip-arriere {
  transform: rotateY(180deg);
  background:
    radial-gradient(ellipse 90% 120% at 20% -20%, rgba(108, 93, 240, 0.28), transparent 65%),
    var(--panel-2);
  border: 1px solid rgba(108, 93, 240, 0.45);
  justify-content: center;
  font-size: 1.02rem;
  line-height: 1.45;
}
.flip-arriere em { font-style: normal; color: var(--accent); }

@media (max-width: 900px) {
  .flip-grid { grid-template-columns: 1fr; }
  .flip { height: 10rem; }
}
@media (prefers-reduced-motion: reduce) {
  .flip-inner { transition: none; }
}
html.anim-reduite .flip-inner { transition: none; }

/* ==========================================================================
   V4 · Réassurance, pédagogie du « pourquoi », preuve tangible, témoignages
   ========================================================================== */

/* ---------- Badges de réassurance (rangée sous les CTA) ---------- */
.reassure {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem 2rem;
  margin-top: 2.8rem;
}
.reassure span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
}
.reassure span::before {
  content: "";
  width: 20px; height: 20px;
  flex: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a3ee0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 13px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- Pourquoi automatiser : bénéfices ---------- */
.pourquoi { padding: 12vh 6vw 8vh; }
.benef-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
  max-width: 68rem;
  margin: 3.5rem auto 0;
}
.benef {
  padding: 2rem 1.6rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(23, 23, 40, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.benef:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(23, 23, 40, 0.1); }
.benef-ico {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 1.2rem;
  background: color-mix(in srgb, var(--violet) 12%, transparent);
}
.benef-ico svg { width: 26px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.benef h3 { font-size: 1.2rem; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.benef p { color: var(--text-dim); font-size: 0.92rem; line-height: 1.5; }

/* ---------- Agents en action : preuve tangible chiffrée ---------- */
.agents-live { padding: 4vh 6vw 12vh; }
.live-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  max-width: 68rem;
  margin: 3rem auto 0;
}
.live-card {
  position: relative;
  padding: 1.4rem 1.4rem 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(23, 23, 40, 0.05);
  overflow: hidden;
}
.live-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--grad-brand);
}
.live-etat {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.live-etat i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: battement 2s ease-in-out infinite;
}
@keyframes battement {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.live-nom { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; letter-spacing: -0.01em; }
.live-sous { color: var(--text-dim); font-size: 0.85rem; margin-top: 0.25rem; }
.live-gain {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--violet) 12%, transparent);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
html.anim-reduite .live-etat i { animation: none; }
@media (prefers-reduced-motion: reduce) { .live-etat i { animation: none; } }

/* ---------- Témoignages ---------- */
.temoignages { padding: 12vh 6vw 14vh; }
.temo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  max-width: 68rem;
  margin: 3.5rem auto 0;
}
.temo {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.8rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(23, 23, 40, 0.05);
}
.temo-etoiles { display: flex; gap: 0.2rem; margin-bottom: 1.1rem; color: var(--accent); }
.temo-etoiles svg { width: 18px; height: 18px; fill: currentColor; }
.temo-texte { font-size: 1.02rem; line-height: 1.55; flex: 1; }
.temo-gain {
  margin-top: 1.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
}
.temo-perso { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.temo-avatar {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  background: var(--grad-brand);
}
.temo-avatar img {
  width: 100%;
  height: 100%;
  display: block;
}
.temo-nom { font-weight: 700; font-size: 0.95rem; }
.temo-role { color: var(--text-dim); font-size: 0.82rem; }
.temo-note {
  max-width: 68rem;
  margin: 2rem auto 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-style: italic;
}

@media (max-width: 900px) {
  .benef-grid { grid-template-columns: 1fr 1fr; }
  .live-grid { grid-template-columns: 1fr 1fr; }
  .temo-grid { grid-template-columns: 1fr; }
  .reassure { gap: 1rem 1.4rem; }
}
@media (max-width: 560px) {
  .benef-grid { grid-template-columns: 1fr; }
  .live-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   V5 · Motion design : chapitres en écrans arrondis, aimantation des CTA,
   esquisse d'invitation sur le dictionnaire
   ========================================================================== */

/* les chapitres sombres deviennent des écrans posés sur le fond clair */
.zoom-wrap, .wf-wrap, .dash-wrap, .cal-wrap, .orbit-wrap {
  margin-left: 1.2vw;
  margin-right: 1.2vw;
  border-radius: 32px;
}
.zoom-sticky::after, .wf-sticky::after, .dash-sticky::after, .cal-sticky::after, .orbit-sticky::after,
.dash-veil { border-radius: 32px; }
@media (max-width: 900px) {
  .zoom-wrap, .wf-wrap, .dash-wrap, .cal-wrap, .orbit-wrap { margin-left: 0; margin-right: 0; border-radius: 20px; }
}

/* esquisse de rotation : la première carte invite au geste */
.flip.tease .flip-inner { animation: esquisse 1.1s ease-in-out 1; }
@keyframes esquisse {
  0%, 100% { transform: rotateY(0); }
  40% { transform: rotateY(24deg); }
}
html.anim-reduite .flip.tease .flip-inner { animation: none; }
@media (prefers-reduced-motion: reduce) { .flip.tease .flip-inner { animation: none; } }

/* ==========================================================================
   V7 · Chapitre « Le temps » : le calendrier qui se remplit sans vous
   ========================================================================== */
.cal-wrap { position: relative; height: 320vh; }
.cal-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cal-scene {
  position: absolute;
  inset: 0;
  transform: scale(3);
  transform-origin: 50% 50%;
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cal-grille {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 1fr;
  gap: 0.55rem;
  width: min(92vw, 78rem);
  height: 78vh;
  padding: 0.5rem;
}
.cal-jour {
  position: relative;
  padding: 0.55rem 0.6rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.cal-we { background: #101014; opacity: 0.75; }
.cal-vide { background: transparent; border-style: dashed; opacity: 0.4; }
.cal-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.cal-chip {
  display: block;
  margin-top: 0.35rem;
  padding: 0.16rem 0.45rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: scale(0.7);
}
.cal-focus {
  background: #17171d;
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 0 34px color-mix(in srgb, var(--accent) 22%, transparent);
}
.cal-rdv { margin-top: 0.3rem; }
.cal-rdv b {
  display: block;
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--text);
}
.cal-rdv span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.6rem;
  color: var(--accent);
}
.cal-caption { position: relative; }

@media (max-width: 900px) {
  .cal-scene { transform: scale(2.2); }
  .cal-grille { gap: 0.3rem; height: 64vh; }
  .cal-chip { font-size: 0.5rem; padding: 0.1rem 0.3rem; }
  .cal-rdv b { font-size: 0.6rem; }
  .cal-num { font-size: 0.62rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cal-wrap { height: auto; min-height: 100vh; }
  .cal-sticky { position: relative; height: auto; min-height: 100vh; }
  .cal-scene { transform: none; }
  .cal-chip { opacity: 1; transform: none; }
  .cal-caption { opacity: 1; transform: none; }
}

/* ==========================================================================
   V9 · Qualité perçue (motifs premium repérés via 21st.dev) :
   bande d'outils compatibles + éclat périodique des CTA
   ========================================================================== */

.outils { padding: 3.4rem 0 1.2rem; }
.outils-titre {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  margin-bottom: 1.9rem;
}
.logo-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 14%, black 86%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 14%, black 86%, transparent);
}
.logo-piste {
  display: flex;
  align-items: center;
  gap: 4.5rem;
  width: max-content;
  padding-block: 0.5rem;
  animation: defile 32s linear infinite;
}
.logo-marquee:hover .logo-piste { animation-play-state: paused; }
.logo-piste img {
  height: 30px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}
.logo-piste img:hover {
  filter: none;
  opacity: 1;
  transform: translateY(-2px) scale(1.06);
}

/* éclat lumineux périodique sur les CTA pleins */
.cta:not(.cta-ghost) { position: relative; overflow: hidden; }
.cta:not(.cta-ghost)::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -45%;
  width: 34%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-18deg);
  animation: eclat 4.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes eclat {
  0% { left: -45%; }
  55% { left: 135%; }
  100% { left: 135%; }
}

html.anim-reduite .logo-piste,
html.anim-reduite .cta:not(.cta-ghost)::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .logo-piste { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .logo-marquee { mask-image: none; -webkit-mask-image: none; }
  .cta:not(.cta-ghost)::after { animation: none; display: none; }
}
@media (max-width: 900px) {
  .logo-piste { gap: 2.8rem; }
  .logo-piste img { height: 24px; }
}

.outils-plus {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-top: 1.2rem;
  opacity: 0.85;
}

/* ==========================================================================
   V10 · Humanisation : soulignés manuscrits, question ouverte, métiers
   ========================================================================== */
.souligne { position: relative; display: inline-block; }
.trait-main {
  position: absolute;
  left: 2%;
  bottom: -0.16em;
  width: 96%;
  height: 0.16em;
  overflow: visible;
}
.trait-main path {
  fill: none;
  stroke: var(--violet);
  stroke-width: 3.5;
  stroke-linecap: round;
  opacity: 0.75;
}

.audit-humains {
  display: flex;
  justify-content: center;
  margin-top: 1.8rem;
}
.audit-humains img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--grad-brand);
  border: 3px solid var(--bg);
}
.audit-humains img + img { margin-left: -12px; }
.audit-humains-ligne {
  max-width: 36rem;
  margin: 0.9rem auto 0;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.6;
}

.form-champ textarea {
  width: 100%;
  min-height: 104px;
  padding: 0.8rem 1rem;
  background: var(--panel-2);
  border: 1px solid var(--border-champ);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  resize: vertical;
}

/* ==========================================================================
   V11 · Chapitre « 03 Vous » : rotation 360 autour du dirigeant,
   cartes solutions en orbite avec profondeur (séquence d'images scrubbée)
   ========================================================================== */
.orbit-wrap { position: relative; height: 460vh; }
.orbit-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit-scene { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.orbit-cadre {
  position: relative;
  width: min(86vh, 92vw);
  aspect-ratio: 1;
  will-change: transform;
}
.orbit-video, .orbit-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  object-fit: cover;
  /* fond les bords du carré vidéo dans le noir du chapitre (l'encodage
     décale légèrement les noirs, le bord serait sinon perceptible) */
  -webkit-mask-image: radial-gradient(ellipse 50% 53% at 50% 47%, #000 60%, transparent 94%);
  mask-image: radial-gradient(ellipse 50% 53% at 50% 47%, #000 60%, transparent 94%);
}
.orbit-poster { display: none; }
.orbit-cartes { position: absolute; inset: 0; pointer-events: none; }
.orbit-carte {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.95rem;
  /* pas de backdrop-filter : au-dessus d'un canvas repeint à chaque tick,
     il se recalcule en continu et hache le scroll */
  background: rgba(22, 22, 29, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
  will-change: transform, opacity, filter;
}
.orbit-carte .dot, .orbit-note .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  flex: none;
}
.orbit-note {
  position: absolute;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1rem;
  background: rgba(18, 18, 24, 0.78);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--text);
  opacity: 0;
  transform: translateY(16px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.45);
}
.orbit-note-1 { left: 8%; top: 20%; }
.orbit-note-2 { right: 7%; top: 34%; }
.orbit-note-3 { left: 10%; bottom: 22%; }
.orbit-caption { position: relative; }

@media (max-width: 900px) {
  .orbit-cadre { width: min(70vh, 96vw); }
  .orbit-video { display: none; }
  .orbit-poster { display: block; }
  .orbit-carte { font-size: 0.74rem; padding: 0.45rem 0.7rem; }
  .orbit-note { font-size: 0.78rem; padding: 0.45rem 0.8rem; }
  .orbit-note-1 { left: 4%; top: 14%; }
  .orbit-note-2 { right: 3%; top: 30%; }
  .orbit-note-3 { left: 6%; bottom: 18%; }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-wrap { height: auto; min-height: 100vh; }
  .orbit-sticky { position: relative; height: auto; min-height: 100vh; padding: 12vh 0; }
  .orbit-video { display: none; }
  .orbit-poster { display: block; }
  .orbit-carte, .orbit-note { display: none; }
  .orbit-caption { opacity: 1; transform: none; }
}

/* ==========================================================================
   V13 · Recette de publication : sous 1100px les rails latéraux du héros
   n'ont plus de largeur, les puces flotteraient sur le texte (collision
   mesurée avec le surtitre sur mobile) : on les réserve aux grands écrans
   ========================================================================== */
@media (max-width: 1100px) {
  .hero-chips { display: none; }
}

/* 01 · Vous et 02 · Le calme forment un seul acte sombre : coins fondus
   à la jointure, un seul écran continu du personnage au chaos qui se range */
.orbit-wrap { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.orbit-wrap + .zoom-wrap { border-top-left-radius: 0; border-top-right-radius: 0; margin-top: 0; }
