/* RosettAI — landing page
   Charte reprise du plugin Word (WordAddin/src/taskpane/taskpane.css). */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  src: url("fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  src: url("fonts/instrument-serif-italic-latin-ext.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --accent: #7c3aed;
  --star: #facc15;
  --ink: #0f0e17;
  --ink-2: #191824;
  --ink-line: rgba(236, 235, 245, 0.1);
  --ink-text: #ecebf5;
  --ink-muted: #9a9ab0;
  --paper: #f7f7fb;
  --paper-2: #efeff7;
  --surface: #ffffff;
  --line: #e4e4ef;
  --line-strong: #d1d1e0;
  --text: #1f2430;
  --muted: #6b7280;
  --soft: #eef2ff;
  --zone: #2b63c6;
  --zone-soft: #eef4fc;
  --master: #6d28d9;
  --doc-blue: #1f4e79;
  --success: #067647;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --sans: "Geist", "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --serif: "Instrument Serif", Georgia, serif;
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
}
p {
  margin: 0;
}
em.serif,
.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.wrap {
  width: min(var(--wrap), 100% - 40px);
  margin-inline: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ------------------------------------------------------------------ */
/* Boutons                                                             */
/* ------------------------------------------------------------------ */
.btn {
  --h: 52px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: var(--h);
  padding: 0 24px;
  border-radius: 12px;
  font: 600 16px/1 var(--sans);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(79, 70, 229, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -14px rgba(79, 70, 229, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}
.btn-light {
  background: #fff;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-light:hover {
  box-shadow: inset 0 0 0 1px var(--primary);
}
.btn .star {
  width: 14px;
  height: 14px;
  flex: none;
}
.play-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
}
.play-dot::before {
  content: "";
  margin-left: 3px;
  border-left: 8px solid var(--primary);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* ------------------------------------------------------------------ */
/* Etiquette "zone" (signature : reprend les zones du plugin)          */
/* ------------------------------------------------------------------ */
.zone-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 12.5px/1 var(--mono);
  letter-spacing: 0.02em;
  color: var(--zone);
  background: var(--zone-soft);
  border: 1px solid #c9d8f1;
  border-radius: 6px 6px 6px 0;
  padding: 7px 10px;
  text-transform: none;
}
.zone-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: currentColor;
}
.zone-tag.on-ink {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(165, 180, 252, 0.28);
}
.zone-tag.master {
  color: var(--master);
  background: #f3efff;
  border-color: #e4dcfb;
}

/* ------------------------------------------------------------------ */
/* Navigation                                                          */
/* ------------------------------------------------------------------ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.3s, box-shadow 0.3s, color 0.3s;
  color: var(--ink-text);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}
.nav.scrolled {
  background: rgba(15, 14, 23, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--ink-line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand img {
  width: 32px;
  height: 32px;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-muted);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: #fff;
}
.nav .btn {
  --h: 42px;
  font-size: 14.5px;
  padding: 0 18px;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--ink-line);
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: auto;
  position: relative;
  border-radius: 2px;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
}
.nav-toggle span::before {
  top: -6px;
}
.nav-toggle span::after {
  top: 6px;
}

/* ------------------------------------------------------------------ */
/* Hero (encre)                                                        */
/* ------------------------------------------------------------------ */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--ink-text);
  padding: 150px 0 120px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(900px 600px at 18% 20%, rgba(79, 70, 229, 0.42), transparent 70%),
    radial-gradient(800px 600px at 88% 80%, rgba(124, 58, 237, 0.38), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 25%, transparent 75%);
}
@keyframes drift {
  to {
    transform: translate3d(-3%, 2%, 0) scale(1.06);
  }
}
.grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.08;
  pointer-events: none;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(44px, 6.2vw, 84px);
  margin: 26px 0 26px;
  color: #fff;
}
.hero h1 .serif {
  font-size: 1.12em;
  background: linear-gradient(90deg, #a5b4fc, #c4b5fd 55%, var(--star));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}
.hero .lead {
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--ink-muted);
  max-width: 34em;
}
.hero .lead strong {
  color: var(--ink-text);
  font-weight: 600;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 38px;
}
.hero-proof {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 40px;
  font-size: 14.5px;
  color: var(--ink-muted);
}
.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-proof svg {
  width: 16px;
  height: 16px;
  color: var(--star);
}

/* chargement orchestre */
.reveal-load > * {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) forwards;
}
.reveal-load > *:nth-child(1) {
  animation-delay: 0.05s;
}
.reveal-load > *:nth-child(2) {
  animation-delay: 0.15s;
}
.reveal-load > *:nth-child(3) {
  animation-delay: 0.28s;
}
.reveal-load > *:nth-child(4) {
  animation-delay: 0.4s;
}
.reveal-load > *:nth-child(5) {
  animation-delay: 0.52s;
}
@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- maquette animee du document ---- */
.stage {
  position: relative;
  perspective: 1600px;
  opacity: 0;
  animation: rise 1.1s 0.35s var(--ease) forwards;
}
.doc {
  position: relative;
  background: #fff;
  color: #222;
  border-radius: 12px;
  padding: 34px 34px 40px;
  font-family: Aptos, "Segoe UI", Calibri, sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotateY(-9deg) rotateX(4deg);
  transform-origin: 30% 50%;
  min-height: 520px;
}
.doc-bar {
  position: absolute;
  inset: 0 0 auto;
  height: 30px;
  border-radius: 12px 12px 0 0;
  background: #f3f2f1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  font: 12px var(--sans);
  color: #605e5c;
}
.doc-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5f57;
}
.doc-bar i:nth-child(2) {
  background: #febc2e;
}
.doc-bar i:nth-child(3) {
  background: #28c840;
}
.doc-bar b {
  font-weight: 400;
  margin-left: auto;
  margin-right: auto;
}
.doc .doc-title {
  margin: 22px 0 2px;
  font: 500 24px/1.2 Aptos, "Segoe UI", sans-serif;
  color: var(--doc-blue);
}
.doc .sub {
  color: #666;
  font-size: 12.5px;
}
.dzone {
  position: relative;
  margin-top: 30px;
  border: 1.5px solid #9db7e3;
  border-radius: 0 7px 7px 7px;
  padding: 10px 12px;
  min-height: 46px;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.dzone > .lbl {
  position: absolute;
  top: -21px;
  left: -1.5px;
  font: 600 11px/1 var(--sans);
  padding: 4px 8px;
  border-radius: 4px 4px 0 0;
  color: var(--zone);
  background: var(--zone-soft);
  border: 1.5px solid #9db7e3;
  border-bottom: 0;
  display: flex;
  gap: 6px;
  align-items: center;
  transition: inherit;
}
.dzone.live {
  border-color: var(--zone);
  background: rgba(43, 99, 198, 0.035);
  box-shadow: 0 0 0 4px rgba(43, 99, 198, 0.12);
}
.dzone.live > .lbl {
  background: var(--zone);
  color: #fff;
  border-color: var(--zone);
}
.dzone .ph {
  color: #a0a0b4;
  font-style: italic;
  font-size: 12.5px;
}
.dzone h5 {
  margin: 0 0 4px;
  font: 500 16px/1.3 Aptos, "Segoe UI", sans-serif;
  color: var(--doc-blue);
}
.dots {
  display: none;
  gap: 3px;
}
.dzone.live .dots {
  display: inline-flex;
}
.dots i {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: currentColor;
  animation: blink 1s infinite;
}
.dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.dots i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes blink {
  50% {
    opacity: 0.25;
  }
}
.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--zone);
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: blink 0.9s steps(1) infinite;
}
.dtable {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.dtable th {
  background: var(--doc-blue);
  color: #fff;
  text-align: left;
  font-weight: 600;
  padding: 4px 8px;
}
.dtable td {
  padding: 4px 8px;
  border-bottom: 1px solid #c9ddeb;
}
.dtable tr:nth-child(odd) td {
  background: #d9ecf7;
}
.dtable tr {
  transition: opacity 0.4s;
}

/* carte de chat flottante */
.chat {
  position: absolute;
  right: -18px;
  bottom: -46px;
  width: 300px;
  background: var(--paper);
  color: var(--text);
  border-radius: 16px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(79, 70, 229, 0.25);
  overflow: hidden;
  font-size: 13px;
  transform: translateZ(60px);
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}
.chat-head img {
  width: 22px;
  height: 22px;
}
.chat-head small {
  margin-left: auto;
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.08em;
  color: var(--zone);
  text-transform: uppercase;
}
.chat-head small.master {
  color: var(--master);
}
.chat-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 150px;
}
.msg-user {
  align-self: flex-end;
  max-width: 90%;
  background: var(--primary);
  color: #fff;
  padding: 8px 11px;
  border-radius: 12px 12px 3px 12px;
  line-height: 1.4;
}
.msg-ai {
  max-width: 94%;
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px 11px;
  border-radius: 12px 12px 12px 3px;
  line-height: 1.4;
}
.msg-ai em {
  display: block;
  font-style: normal;
  font-size: 11.5px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 4px;
}
.status {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--text);
  font-size: 12.5px;
}
.status.done {
  color: var(--muted);
}
.status .spin {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(79, 70, 229, 0.2);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
  flex: none;
}
.status.done .spin {
  border: 0;
  animation: none;
  background: rgba(6, 118, 71, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23067647' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
code.tool {
  font: 500 11.5px var(--mono);
  background: var(--soft);
  color: var(--primary-dark);
  padding: 1px 5px;
  border-radius: 4px;
}
.fade-in {
  animation: rise 0.45s var(--ease) both;
}

/* ------------------------------------------------------------------ */
/* Bandeau "fonctionne avec"                                           */
/* ------------------------------------------------------------------ */
.strip {
  background: var(--ink);
  color: var(--ink-muted);
  border-top: 1px solid var(--ink-line);
  padding: 26px 0 28px;
  font-size: 14px;
}
.strip .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.strip .label {
  font: 600 11.5px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6f6f88;
}
.strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.strip li {
  font-weight: 600;
  color: #c9c8da;
  letter-spacing: -0.01em;
}
.strip li.more {
  font-weight: 500;
  color: #a5b4fc;
}

/* ------------------------------------------------------------------ */
/* Sections papier                                                     */
/* ------------------------------------------------------------------ */
section {
  position: relative;
}
.section {
  padding: 130px 0;
}
.section-head {
  max-width: 760px;
  margin-bottom: 64px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(36px, 4.4vw, 58px);
  margin: 22px 0 18px;
}
.section-head h2 .serif {
  color: var(--primary);
  font-size: 1.1em;
}
.section-head p {
  font-size: 19px;
  color: var(--muted);
}

/* ---- video ---- */
.video-section {
  background: linear-gradient(var(--ink) 0 38%, var(--paper) 38%);
  padding: 30px 0 110px;
}
.video-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: 0 60px 120px -50px rgba(31, 36, 48, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  aspect-ratio: 16 / 9;
}
.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- constat : trois frictions illustrees ---- */
.problems {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: start;
}
.problem {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 40px 70px -50px rgba(31, 36, 48, 0.45);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.problem:hover,
.js .problem.reveal.in:hover {
  transform: translateY(-6px) rotate(-0.3deg);
  box-shadow: 0 0 0 1px rgba(225, 29, 72, 0.25), 0 50px 80px -50px rgba(225, 29, 72, 0.4);
}
.problem:nth-child(2) {
  margin-top: 44px;
}
.problem-body {
  padding: 26px 28px 30px;
}
.friction {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 600 11.5px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #be123c;
}
.friction::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f43f5e;
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.15);
}
.problem h3 {
  font-size: 24px;
  margin: 14px 0 8px;
}
.problem p {
  color: var(--muted);
  font-size: 16px;
}

/* scene commune */
.scene {
  position: relative;
  height: 196px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #fff1f3 0%, #faf7fb 60%, #f4f3fa 100%);
  border-bottom: 1px solid var(--line);
}
.scene .ln {
  display: block;
  height: 6px;
  width: 100%;
  border-radius: 3px;
  background: #e6e6ef;
  margin-top: 7px;
}
.mini {
  position: absolute;
  top: 44px;
  width: 38%;
  background: #fff;
  border-radius: 10px;
  padding: 0 10px 12px;
  box-shadow: 0 12px 24px -14px rgba(31, 36, 48, 0.4), 0 0 0 1px var(--line);
}
.mini-bar {
  margin: 0 -10px 6px;
  padding: 6px 10px;
  font: 600 10px/1 var(--sans);
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.mini-chat {
  left: 7%;
  transform: rotate(-3deg);
}
.mini-doc {
  right: 7%;
  transform: rotate(2.5deg);
}
.mini .ln.sel {
  background: #fecdd3;
}
.mini .ln.h {
  width: 50%;
  height: 8px;
  background: #c9d8f1;
}
.mini .ln.paste {
  background: #fecdd3;
  animation: paste 3.2s var(--ease) infinite;
  transform-origin: left;
}
.scene-copy .arc {
  position: absolute;
  left: 22%;
  right: 22%;
  top: 22px;
  width: 56%;
  height: 50px;
  overflow: visible;
}
.scene-copy .arc path {
  fill: none;
  stroke: #fda4af;
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
  vector-effect: non-scaling-stroke;
}
.chip-copy {
  position: absolute;
  top: 10px;
  left: 50%;
  translate: -50% 0;
  font: 600 11.5px/1 var(--mono);
  color: #fff;
  background: var(--text);
  padding: 7px 10px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.45);
  animation: hop 3.2s var(--ease) infinite;
}
@keyframes hop {
  0% {
    transform: translate(-90px, 40px) rotate(-8deg);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  50% {
    transform: translate(0, 0) rotate(0deg);
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translate(90px, 40px) rotate(8deg);
    opacity: 0;
  }
}
@keyframes paste {
  0%,
  70% {
    transform: scaleX(0);
  }
  85%,
  100% {
    transform: scaleX(1);
  }
}

/* ton qui varie : trois pages en eventail */
.scene-tone .page {
  position: absolute;
  top: 34px;
  left: 50%;
  width: 29%;
  height: 150px;
  margin-left: -14.5%;
  background: #fff;
  border-radius: 8px;
  padding: 14px 12px;
  box-shadow: 0 14px 26px -16px rgba(31, 36, 48, 0.45), 0 0 0 1px var(--line);
  transition: transform 0.5s var(--ease);
}
.scene-tone .page b {
  display: block;
  margin-bottom: 4px;
  white-space: nowrap;
}
.scene-tone .p1 {
  transform: translateX(-92%) rotate(-8deg);
}
.scene-tone .p2 {
  transform: translateY(-8px);
  z-index: 1;
}
.scene-tone .p3 {
  transform: translateX(92%) rotate(8deg);
}
.problem:hover .scene-tone .p1 {
  transform: translateX(-104%) rotate(-12deg);
}
.problem:hover .scene-tone .p3 {
  transform: translateX(104%) rotate(12deg);
}
.t-a {
  font: 500 14px/1.2 Georgia, serif;
  color: var(--doc-blue);
}
.t-b {
  font: 700 12px/1.2 var(--mono);
  color: #be123c;
  letter-spacing: 0.08em;
}
.t-c {
  font: italic 400 13px/1.2 "Comic Sans MS", "Segoe Print", cursive;
  color: #7c7c8f;
}

/* donnees exposees : un fichier glisse dans un chatbot public */
.leak-input {
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: 34px;
  background: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 14px 26px -16px rgba(31, 36, 48, 0.45), 0 0 0 1px var(--line);
}
.leak-label {
  display: block;
  font: 600 10px/1 var(--sans);
  color: var(--muted);
  margin-bottom: 6px;
}
.leak-field {
  font-size: 13px;
  color: #9a9ab0;
}
.file-chip {
  position: absolute;
  left: 50%;
  top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 600 12px/1 var(--sans);
  color: var(--text);
  background: #fff;
  border-radius: 9px;
  padding: 8px 11px;
  white-space: nowrap;
  box-shadow: 0 12px 22px -10px rgba(31, 36, 48, 0.4), 0 0 0 1px #d1fae5;
  animation: drop 3.6s var(--ease) infinite;
}
.file-chip svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #047857;
  stroke-width: 2;
  stroke-linejoin: round;
}
.leak-alert {
  position: absolute;
  right: 11%;
  bottom: 92px;
  font: 700 11px/1 var(--mono);
  color: #fff;
  background: #e11d48;
  padding: 6px 9px;
  border-radius: 999px;
  box-shadow: 0 8px 18px -6px rgba(225, 29, 72, 0.6);
  animation: alert 3.6s var(--ease) infinite;
}
@keyframes drop {
  0% {
    transform: translate(-130%, -10px) rotate(-6deg);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  55%,
  100% {
    transform: translate(-50%, 82px) rotate(0deg) scale(0.92);
    opacity: 1;
  }
}
@keyframes alert {
  0%,
  55% {
    transform: scale(0);
  }
  65% {
    transform: scale(1.15);
  }
  72%,
  100% {
    transform: scale(1);
  }
}
.answer {
  margin-top: 70px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.18), 0 30px 60px -40px rgba(79, 70, 229, 0.5);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.answer img {
  width: 54px;
  height: 54px;
  flex: none;
}
.answer .serif {
  color: var(--primary);
  font-size: 1.15em;
}

/* ---- produit : recit au defilement (fenetre Word fixe qui change d'etat) ---- */
.features {
  background: var(--paper-2);
}
.strike {
  position: relative;
  white-space: nowrap;
}
.strike::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  top: 54%;
  height: 0.09em;
  border-radius: 99px;
  background: #f43f5e;
  transform: scaleX(0) rotate(-3deg);
  transform-origin: left;
  transition: transform 0.7s 0.5s var(--ease);
}
.section-head.in .strike::after,
html:not(.js) .strike::after {
  transform: scaleX(1) rotate(-3deg);
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 11px;
}
.ticks li {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  background: var(--primary);
  clip-path: polygon(50% 0%, 64% 36%, 100% 50%, 64% 64%, 50% 100%, 36% 64%, 0% 50%, 36% 36%);
}

.story {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.story-step {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 0;
  opacity: 0.28;
  transition: opacity 0.5s var(--ease);
}
.story-step.active {
  opacity: 1;
}
.story-step h3 {
  font-size: clamp(30px, 3.2vw, 42px);
  margin: 20px 0 16px;
}
.story-step h3 .serif {
  color: var(--primary);
}
.story-step p {
  color: var(--muted);
  font-size: 18px;
}
.real-shot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}
.real-shot img {
  width: 120px;
  height: 70px;
  object-fit: cover;
  object-position: right top;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--line), 0 12px 24px -16px rgba(31, 36, 48, 0.5);
  transition: transform 0.3s var(--ease);
}
.real-shot.narrow img {
  object-position: center top;
}
.real-shot:hover img {
  transform: scale(1.05) rotate(-1deg);
}

.story-stage {
  position: sticky;
  top: max(96px, calc(50vh - 300px));
}
.sw-fit {
  position: relative;
  width: 100%;
  height: calc(480px * var(--s, 1));
}
.sw {
  position: absolute;
  top: 0;
  left: 0;
  width: 640px;
  height: 480px;
  transform: scale(var(--s, 1));
  transform-origin: 0 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 60px 110px -50px rgba(31, 36, 48, 0.55), 0 0 0 1px rgba(31, 36, 48, 0.08);
  font-family: var(--sans);
  color: var(--text);
}
.sw-bar {
  height: 30px;
  background: #f3f2f1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  font-size: 11.5px;
  color: #605e5c;
}
.sw-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5f57;
}
.sw-bar i:nth-child(2) {
  background: #febc2e;
}
.sw-bar i:nth-child(3) {
  background: #28c840;
}
.sw-bar b {
  font-weight: 400;
  margin: 0 auto;
}
.sw-body {
  display: flex;
  height: 450px;
}
.sw-doc {
  flex: 1;
  overflow: hidden;
  padding: 0 14px;
  /* page blanche posee sur le fond gris de Word */
  background: linear-gradient(#fff, #fff) 14px 12px / calc(100% - 28px) 100% no-repeat, #e9e9ef;
  padding-top: 12px;
}
.sd-title {
  padding: 18px 16px 0;
  font: 500 19px/1.2 Aptos, "Segoe UI", sans-serif;
  color: var(--doc-blue);
}
.sd-sub {
  padding: 2px 16px 0;
  font-size: 10.5px;
  color: #777;
}
.sd-zone {
  position: relative;
  margin: 26px 16px 0;
  border: 1.5px solid #c9d8f1;
  border-radius: 0 7px 7px 7px;
  padding: 9px 10px 10px;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.sd-lbl {
  position: absolute;
  top: -18px;
  left: -1.5px;
  font: 600 9.5px/1 var(--sans);
  padding: 3px 6px;
  color: var(--zone);
  background: var(--zone-soft);
  border: 1.5px solid #c9d8f1;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  transition: inherit;
}
.sd-src {
  position: absolute;
  top: -17px;
  right: 0;
  font: 600 9px/1 var(--mono);
  color: #047857;
  background: #ecfdf3;
  border: 1px solid #abefc6;
  padding: 3px 6px;
  border-radius: 999px;
  transform: scale(0);
}
.sd-ln {
  display: block;
  height: 5px;
  margin-top: 6px;
  border-radius: 3px;
  background: #cfd5e6;
  transform-origin: left;
}
.sd-ln.bullet {
  margin-left: 12px;
  position: relative;
}
.sd-ln.bullet::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9aa3bd;
}
.sd-row {
  display: block;
  height: 13px;
  margin-top: 3px;
  border-radius: 3px;
  background: #d9ecf7;
  transform-origin: left;
}
.sd-row.head {
  background: var(--doc-blue);
  margin-top: 0;
}
.sd-zone.live {
  border-color: var(--zone);
}

/* panneau */
.sw-pane {
  position: relative;
  width: 252px;
  flex: none;
  background: var(--paper);
  border-left: 1px solid #d6d6e0;
  overflow: hidden;
}
.sp-head {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 13px;
}
.sp-head img {
  width: 20px;
  height: 20px;
}
.sp-head em {
  margin-left: auto;
  font-style: normal;
  font-weight: 500;
  font-size: 10.5px;
  color: var(--muted);
}
.pv {
  position: absolute;
  inset: 42px 0 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(16px);
  transition: opacity 0.35s, transform 0.35s var(--ease), visibility 0s 0.35s;
}
.ctx {
  padding: 9px 12px;
  background: var(--zone-soft);
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 13px;
}
.ctx small {
  display: block;
  font: 700 8.5px/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--zone);
}
.ctx.master {
  background: #f3efff;
}
.ctx.master small {
  color: var(--master);
}
.msgs {
  padding: 12px;
  display: grid;
  gap: 9px;
  font-size: 11.5px;
  line-height: 1.4;
}
.m-user {
  justify-self: end;
  max-width: 88%;
  background: var(--primary);
  color: #fff;
  padding: 7px 10px;
  border-radius: 11px 11px 3px 11px;
}
.m-ai {
  max-width: 94%;
  background: #fff;
  border: 1px solid var(--line);
  padding: 7px 10px;
  border-radius: 11px 11px 11px 3px;
}
.m-ai em {
  display: block;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 3px;
}
.st {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}
.st code {
  font: 500 10px var(--mono);
  background: var(--soft);
  color: var(--primary-dark);
  padding: 1px 4px;
  border-radius: 3px;
}
.st .sp,
.st .ck {
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 50%;
}
.st .sp {
  position: absolute;
  border: 2px solid rgba(79, 70, 229, 0.2);
  border-top-color: var(--primary);
  opacity: 0;
}
.st .ck {
  background: rgba(6, 118, 71, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23067647' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* editeur de zone */
.tabs {
  display: flex;
  gap: 12px;
  padding: 9px 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.tabs span {
  padding-bottom: 7px;
}
.tabs .on {
  color: var(--primary);
  box-shadow: inset 0 -2px 0 var(--primary);
}
.cfg {
  padding: 10px 12px;
  font-size: 11px;
}
.cfg-title {
  display: block;
  font-size: 12px;
  margin-bottom: 2px;
}
.cfg label {
  display: block;
  font-weight: 700;
  margin: 9px 0 4px;
}
.field {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 6px 8px;
}
.field.prompt {
  min-height: 62px;
  line-height: 1.45;
}
.tl {
  display: block;
  white-space: nowrap;
  overflow: hidden;
}
.tools {
  display: grid;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 8px;
}
.tool {
  display: flex;
  align-items: center;
  gap: 7px;
  font: 500 10.5px var(--mono);
}
.tool::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 3px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  box-sizing: border-box;
}
.tool.on-start::before,
.tool.tick::before {
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.9' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/100% no-repeat;
  border-color: var(--primary);
}
.field.select {
  display: grid;
  grid-template-columns: 1fr auto;
}
.field.select .m0,
.field.select .m1 {
  grid-area: 1 / 1;
}
.field.select .m0 {
  opacity: 0;
}
.save {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.btn-save {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 7px;
}
.saved {
  color: var(--success);
  font-weight: 600;
  font-size: 10px;
}

/* connecteurs */
.conns {
  padding: 12px;
  display: grid;
  gap: 7px;
}
.conn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 11.5px;
  font-weight: 600;
}
.conn.more {
  border-style: dashed;
  color: var(--primary);
  justify-content: center;
}
.cs {
  font: 600 9.5px/1 var(--mono);
  color: var(--success);
  background: #ecfdf3;
  border: 1px solid #abefc6;
  padding: 3px 7px;
  border-radius: 999px;
}

/* pastilles de navigation */
.story-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.story-dots button {
  font: 600 12.5px/1 var(--sans);
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 13px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.story-dots button.on {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

/* ---- etats ---- */
.story-stage[data-step="0"] .pv-zone,
.story-stage[data-step="1"] .pv-master,
.story-stage[data-step="2"] .pv-config,
.story-stage[data-step="3"] .pv-connect {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.35s 0.1s, transform 0.45s 0.1s var(--ease), visibility 0s;
}
/* messages et lignes d'etat apparaissent a leur tour (--t), les spinners deviennent des coches (--done) */
[data-step="0"] .pv-zone .msgs > *,
[data-step="1"] .pv-master .msgs > *,
[data-step="3"] .pv-connect .conn {
  animation: msgIn 0.4s var(--ease) var(--t, 0s) both;
}
[data-step="0"] .pv-zone .st .sp,
[data-step="1"] .pv-master .st .sp {
  animation: spinOn var(--done) linear both, spin 0.8s linear infinite;
}
[data-step="0"] .pv-zone .st .ck,
[data-step="1"] .pv-master .st .ck {
  animation: pop 0.35s var(--ease) var(--done) both;
}
[data-step="3"] .pv-connect .cs {
  animation: pop 0.35s var(--ease) calc(var(--t) + 0.35s) both;
}
@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@keyframes pop {
  from {
    transform: scale(0);
  }
}
@keyframes spinOn {
  0%,
  99% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* etape 0 : la zone Presentation s'ecrit ; zones 2 et 3 vides */
[data-step="0"] .z1 {
  border-color: var(--zone);
  box-shadow: 0 0 0 3px rgba(43, 99, 198, 0.12);
}
[data-step="0"] .z1 .sd-lbl {
  background: var(--zone);
  color: #fff;
  border-color: var(--zone);
}
[data-step="0"] .z1 .sd-ln {
  animation: growX 0.5s var(--ease) calc(1.8s + var(--i) * 0.35s) both;
}
[data-step="0"] .z2 > i,
[data-step="0"] .z3 > i {
  transform: scaleX(0);
}
@keyframes growX {
  from {
    transform: scaleX(0);
  }
}

/* etape 1 : l'assistant remplit les zones 2 puis 3 */
[data-step="1"] .z2 > i {
  animation: growX 0.45s var(--ease) calc(1.3s + var(--i) * 0.3s) both;
}
[data-step="1"] .z3 > i {
  animation: growX 0.45s var(--ease) calc(2.9s + var(--i) * 0.3s) both;
}
[data-step="1"] .z2 {
  animation: liveZone 1.6s 1.2s;
}
[data-step="1"] .z3 {
  animation: liveZone 1.4s 2.8s;
}
@keyframes liveZone {
  0%,
  100% {
    border-color: var(--master);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.14);
  }
}

/* etape 2 : edition de la zone Cas d'usage */
[data-step="2"] .z2 {
  border-color: var(--primary);
  border-style: dashed;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
[data-step="2"] .tl {
  animation: type 0.9s steps(34) calc(0.4s + var(--i) * 0.9s) both;
}
@keyframes type {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
[data-step="2"] .tool.tick::before {
  animation: checkOn 0.01s linear 3.2s both;
}
@keyframes checkOn {
  0%,
  99% {
    background: #fff;
    border-color: var(--line-strong);
  }
}
[data-step="2"] .field.select .m1 {
  animation: showLate 0.01s linear 3.8s both;
}
[data-step="2"] .field.select .m0 {
  animation: hideLate 0.01s linear 3.8s both;
}
@keyframes showLate {
  0%,
  99% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes hideLate {
  0%,
  99% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
[data-step="2"] .saved {
  animation: msgIn 0.4s var(--ease) 4.4s both;
}
[data-step="2"] .btn-save {
  animation: press 0.3s 4.2s;
}
@keyframes press {
  50% {
    transform: scale(0.92);
  }
}

/* etape 3 : sources affichees sur chaque zone */
[data-step="3"] .sd-src {
  transform: none;
  animation: pop 0.4s var(--ease) both;
}
[data-step="3"] .z1 .sd-src {
  animation-delay: 0.6s;
}
[data-step="3"] .z2 .sd-src {
  animation-delay: 1.4s;
}
[data-step="3"] .z3 .sd-src {
  animation-delay: 2.2s;
}

/* ------------------------------------------------------------------ */
/* Etapes                                                              */
/* ------------------------------------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 37px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.35;
}
.step {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 26px 24px 30px;
  box-shadow: 0 0 0 1px var(--line), 0 24px 40px -36px rgba(31, 36, 48, 0.5);
}
.step .ico {
  width: 74px;
  height: 74px;
  margin: -64px 0 22px;
  border-radius: 22px;
  background: var(--gradient);
  color: #fff;
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 18px 30px -14px rgba(79, 70, 229, 0.7);
}
.step .ico svg {
  width: 32px;
  height: 32px;
}
.step .ico::after {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -8px;
  right: -8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--star);
  color: var(--text);
  font: 800 13px/26px var(--sans);
  text-align: center;
}
.step h3 {
  font-size: 24px;
  margin-bottom: 8px;
}
.step p {
  color: var(--muted);
  font-size: 16px;
}
.steps-wrap {
  padding-top: 40px;
}
.note {
  margin-top: 48px;
  text-align: center;
  font-size: 20px;
}
.note b {
  color: var(--primary);
}

/* ---- etapes : sequence animee (chaque etape s'active tour a tour, boucle de 8 s) ---- */
.steps::before {
  background: linear-gradient(90deg, var(--primary), var(--accent), #c4b5fd, var(--primary)) 0 0 / 300% 100%;
  opacity: 0.45;
  animation: track 4s linear infinite;
}
@keyframes track {
  to {
    background-position: 300% 0;
  }
}
.step {
  animation: stepOn 8s var(--ease) infinite;
}
.step:nth-child(2),
.step:nth-child(2) .ico,
.step:nth-child(2) .ico::before,
.step:nth-child(2) .ico::after,
.step:nth-child(2) .ico svg,
.step:nth-child(2) .step-bar {
  animation-delay: 2s;
}
.step:nth-child(3),
.step:nth-child(3) .ico,
.step:nth-child(3) .ico::before,
.step:nth-child(3) .ico::after,
.step:nth-child(3) .ico svg,
.step:nth-child(3) .step-bar {
  animation-delay: 4s;
}
.step:nth-child(4),
.step:nth-child(4) .ico,
.step:nth-child(4) .ico::before,
.step:nth-child(4) .ico::after,
.step:nth-child(4) .ico svg,
.step:nth-child(4) .step-bar {
  animation-delay: 6s;
}
@keyframes stepOn {
  0%,
  25% {
    transform: translateY(-8px);
    box-shadow: 0 0 0 1.5px rgba(79, 70, 229, 0.45), 0 34px 50px -30px rgba(79, 70, 229, 0.55);
  }
  31%,
  100% {
    transform: none;
    box-shadow: 0 0 0 1px var(--line), 0 24px 40px -36px rgba(31, 36, 48, 0.5);
  }
}

/* icone : onde + rebond */
.step .ico {
  animation: icoOn 8s var(--ease) infinite;
}
.step .ico::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.5);
  animation: ripple 8s ease-out infinite;
  pointer-events: none;
}
.step .ico::after {
  animation: badge 8s var(--ease) infinite;
}
@keyframes icoOn {
  0% {
    transform: scale(1);
  }
  5% {
    transform: scale(1.12);
  }
  10%,
  100% {
    transform: scale(1);
  }
}
@keyframes ripple {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.5);
  }
  14%,
  100% {
    box-shadow: 0 0 0 22px rgba(79, 70, 229, 0);
  }
}
@keyframes badge {
  0%,
  2% {
    transform: scale(1);
  }
  7% {
    transform: scale(1.35) rotate(-10deg);
  }
  12%,
  100% {
    transform: scale(1);
  }
}

/* micro-animation propre a chaque icone, pendant que l'etape est active */
.step:nth-child(1) .ico svg {
  animation: tune 8s var(--ease) infinite;
}
.step:nth-child(2) .ico svg {
  animation: write 8s var(--ease) infinite;
}
.step:nth-child(3) .ico svg {
  animation: eyeBlink 8s var(--ease) infinite;
}
.step:nth-child(4) .ico svg {
  animation: fly 8s var(--ease) infinite;
}
@keyframes tune {
  0%,
  2% {
    transform: none;
  }
  8% {
    transform: rotate(-14deg);
  }
  14% {
    transform: rotate(10deg);
  }
  20%,
  100% {
    transform: none;
  }
}
@keyframes write {
  0%,
  2% {
    transform: none;
  }
  6% {
    transform: translate(-3px, 2px) rotate(-8deg);
  }
  10% {
    transform: translate(3px, -1px) rotate(6deg);
  }
  14% {
    transform: translate(-2px, 2px) rotate(-6deg);
  }
  18% {
    transform: translate(3px, 0) rotate(4deg);
  }
  22%,
  100% {
    transform: none;
  }
}
@keyframes eyeBlink {
  0%,
  6%,
  10%,
  14%,
  18%,
  100% {
    transform: scaleY(1);
  }
  8%,
  16% {
    transform: scaleY(0.1);
  }
}
@keyframes fly {
  0%,
  3% {
    transform: none;
    opacity: 1;
  }
  11% {
    transform: translate(16px, -16px) scale(0.7);
    opacity: 0;
  }
  12% {
    transform: translate(-16px, 16px) scale(0.7);
    opacity: 0;
  }
  20%,
  100% {
    transform: none;
    opacity: 1;
  }
}

/* barre de progression de l'etape active */
.step-bar {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--gradient);
  transform-origin: left;
  transform: scaleX(0);
  animation: bar 8s linear infinite;
}
@keyframes bar {
  0% {
    transform: scaleX(0);
    opacity: 1;
  }
  25% {
    transform: scaleX(1);
    opacity: 1;
  }
  31%,
  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}

/* en pause tant que la section n'est pas apparue */
.js .step.reveal:not(.in),
.js .step.reveal:not(.in) * ,
.js .step.reveal:not(.in) .ico::before,
.js .step.reveal:not(.in) .ico::after {
  animation-play-state: paused;
}

/* "en quelques heures" souligne a l'apparition */
.note b {
  background: linear-gradient(var(--star), var(--star)) no-repeat 0 100% / 0 3px;
  padding-bottom: 2px;
  transition: background-size 1s 0.5s var(--ease);
}
.note.in b,
html:not(.js) .note b {
  background-size: 100% 3px;
}

/* ------------------------------------------------------------------ */
/* Cas d'usage : mosaique de documents animes                          */
/* ------------------------------------------------------------------ */
.uses {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.use {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 40px 70px -55px rgba(31, 36, 48, 0.5);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.use:hover,
.js .use.reveal.in:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.3), 0 50px 80px -50px rgba(79, 70, 229, 0.45);
}
.use.wide {
  grid-column: span 2;
  flex-direction: row;
}
.use.wide > * {
  flex: 1 1 50%;
}
.use-text {
  padding: 24px 24px 26px;
}
.use h3 {
  font-size: 21px;
  margin: 14px 0 8px;
  letter-spacing: -0.02em;
}
.use.wide h3 {
  font-size: 26px;
}
.use p {
  font-size: 15px;
  color: var(--muted);
}
.use .zones {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.use .zones span {
  font: 500 11.5px var(--mono);
  color: var(--zone);
  background: var(--zone-soft);
  padding: 3px 7px;
  border-radius: 5px;
}

/* scene commune */
.uscene {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, #eef2ff 0%, #f7f7fc 65%, #f3f3fa 100%);
  display: grid;
  place-items: center;
  padding: 22px;
}
.use:not(.wide) .uscene {
  border-bottom: 1px solid var(--line);
}
.use.wide .uscene {
  border-left: 1px solid var(--line);
  min-height: 250px;
}
.use.wide .use-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 34px 34px 36px;
}
.uscene .ln {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: #dfe3f3;
  margin-top: 6px;
  transform-origin: left;
}
.uscene code {
  font: 600 10.5px/1 var(--mono);
  color: var(--primary-dark);
  background: var(--soft);
  padding: 3px 5px;
  border-radius: 4px;
  flex: none;
}
/* animations en pause tant que la carte n'est pas apparue */
.js .use.reveal:not(.in) .uscene * {
  animation-play-state: paused;
}

/* offre commerciale : trois zones remplies tour a tour */
.mpage {
  width: min(250px, 100%);
  background: #fff;
  border-radius: 10px;
  padding: 16px 16px 18px;
  box-shadow: 0 18px 34px -20px rgba(31, 36, 48, 0.45), 0 0 0 1px var(--line);
  rotate: 2deg;
}
.mtitle {
  display: block;
  font: 600 12.5px/1.2 Aptos, "Segoe UI", sans-serif;
  color: var(--doc-blue);
  margin-bottom: 4px;
}
.mz {
  position: relative;
  margin-top: 16px;
  border: 1.5px solid #d6e2f5;
  border-radius: 0 6px 6px 6px;
  padding: 4px 8px 8px;
}
.mzl {
  position: absolute;
  top: -15px;
  left: -1.5px;
  font: 600 9px/1 var(--sans);
  color: var(--zone);
  background: var(--zone-soft);
  border: 1.5px solid #d6e2f5;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  padding: 3px 5px;
}
.mz .ln {
  background: #c9d8f1;
}
.mz.z1 {
  animation: gz1 6s infinite;
}
.mz.z2 {
  animation: gz2 6s infinite;
}
.mz.z3 {
  animation: gz3 6s infinite;
}
.mz.z1 .ln {
  animation: fz1 6s var(--ease) infinite;
}
.mz.z2 .ln {
  animation: fz2 6s var(--ease) infinite;
}
.mz.z3 .ln {
  animation: fz3 6s var(--ease) infinite;
}

/* AO : exigences cochees une a une */
.sc-ao {
  gap: 10px;
  align-content: center;
}
.req {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(230px, 100%);
  background: #fff;
  border-radius: 9px;
  padding: 8px 10px;
  box-shadow: 0 10px 20px -14px rgba(31, 36, 48, 0.45), 0 0 0 1px var(--line);
}
.req .ln {
  margin: 0;
  flex: 1;
}
.req .ok {
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font: 700 11px/18px var(--sans);
  text-align: center;
}
.req.r1 .ok {
  animation: pk1 6s var(--ease) infinite;
}
.req.r2 .ok {
  animation: pk2 6s var(--ease) infinite;
}
.req.r3 .ok {
  animation: pk3 6s var(--ease) infinite;
}

/* fiche produit : visuel + specifications */
.sc-product {
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}
.pimg {
  width: 78px;
  height: 78px;
  border-radius: 14px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  box-shadow: 0 16px 28px -14px rgba(79, 70, 229, 0.7);
  animation: float 4s ease-in-out infinite;
}
.pimg svg {
  width: 26px;
  height: 26px;
  color: var(--star);
}
.specs {
  display: grid;
  gap: 7px;
  width: 100%;
  max-width: 150px;
}
.spec {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 6px;
  background: #fff;
  border-radius: 6px;
  padding: 6px 7px;
  box-shadow: 0 0 0 1px var(--line);
  transform-origin: left;
}
.spec i {
  height: 5px;
  border-radius: 3px;
  background: #dfe3f3;
}
.spec i:first-child {
  background: #c9d8f1;
}
.spec.s1 {
  animation: fz1 6s var(--ease) infinite;
}
.spec.s2 {
  animation: fz2 6s var(--ease) infinite;
}
.spec.s3 {
  animation: fz3 6s var(--ease) infinite;
}
@keyframes float {
  50% {
    transform: translateY(-6px) rotate(-3deg);
  }
}

/* cahier des charges : exigences relues par un curseur */
.sc-cdc {
  gap: 2px;
  align-content: center;
  justify-items: stretch;
}
.exi {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 8px;
  border-radius: 8px;
  animation: hl 5s infinite;
}
.exi:nth-child(2) {
  animation-delay: 1.25s;
}
.exi:nth-child(3) {
  animation-delay: 2.5s;
}
.exi:nth-child(4) {
  animation-delay: 3.75s;
}
.exi .ln {
  margin: 0;
  flex: 1;
}
@keyframes hl {
  0%,
  24% {
    background: rgba(79, 70, 229, 0.1);
    box-shadow: inset 3px 0 0 var(--primary);
  }
  25%,
  100% {
    background: transparent;
    box-shadow: inset 3px 0 0 transparent;
  }
}

/* rapports : barres qui montent + indicateur */
.sc-report {
  place-items: end center;
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 110px;
  width: min(200px, 100%);
  padding: 0 4px;
  border-bottom: 2px solid var(--line-strong);
}
.bars i {
  flex: 1;
  height: var(--h);
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #818cf8, var(--primary));
  transform-origin: bottom;
  animation: grow 6s var(--ease) infinite;
  animation-delay: calc(var(--k) * 0.12s);
}
.bars i:last-child {
  background: linear-gradient(180deg, var(--star), #f59e0b);
}
.kpi {
  position: absolute;
  top: 18px;
  right: 18px;
  font: 700 13px/1 var(--mono);
  color: var(--success);
  background: #ecfdf3;
  padding: 6px 9px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px #abefc6;
  animation: pk3 6s var(--ease) infinite;
}
@keyframes grow {
  0%,
  6% {
    transform: scaleY(0);
  }
  26%,
  88% {
    transform: scaleY(1);
  }
  97%,
  100% {
    transform: scaleY(0);
  }
}

/* procedures : etapes qui s'allument en sequence */
.flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.fs {
  font: 600 12.5px/1 var(--sans);
  min-width: 120px;
  text-align: center;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  color: var(--muted);
  white-space: nowrap;
}
.fl {
  width: 2px;
  height: 12px;
  background: var(--line-strong);
  border-radius: 2px;
}
.fs.f1 {
  animation: on1 6s infinite;
}
.fs.f2 {
  animation: on2 6s infinite;
}
.fs.f3 {
  animation: on3 6s infinite;
}
.fs.f4 {
  animation: on4 6s infinite;
}

@keyframes fz1 {
  0%,
  4% {
    transform: scaleX(0);
  }
  14%,
  88% {
    transform: scaleX(1);
  }
  96%,
  100% {
    transform: scaleX(0);
  }
}
@keyframes fz2 {
  0%,
  24% {
    transform: scaleX(0);
  }
  34%,
  88% {
    transform: scaleX(1);
  }
  96%,
  100% {
    transform: scaleX(0);
  }
}
@keyframes fz3 {
  0%,
  44% {
    transform: scaleX(0);
  }
  54%,
  88% {
    transform: scaleX(1);
  }
  96%,
  100% {
    transform: scaleX(0);
  }
}
@keyframes gz1 {
  0%,
  3%,
  18%,
  100% {
    border-color: #d6e2f5;
    box-shadow: none;
  }
  4%,
  16% {
    border-color: var(--zone);
    box-shadow: 0 0 0 3px rgba(43, 99, 198, 0.14);
  }
}
@keyframes gz2 {
  0%,
  23%,
  38%,
  100% {
    border-color: #d6e2f5;
    box-shadow: none;
  }
  24%,
  36% {
    border-color: var(--zone);
    box-shadow: 0 0 0 3px rgba(43, 99, 198, 0.14);
  }
}
@keyframes gz3 {
  0%,
  43%,
  58%,
  100% {
    border-color: #d6e2f5;
    box-shadow: none;
  }
  44%,
  56% {
    border-color: var(--zone);
    box-shadow: 0 0 0 3px rgba(43, 99, 198, 0.14);
  }
}
@keyframes pk1 {
  0%,
  8% {
    transform: scale(0);
    opacity: 0;
  }
  14% {
    transform: scale(1.2);
    opacity: 1;
  }
  18%,
  90% {
    transform: scale(1);
    opacity: 1;
  }
  97%,
  100% {
    transform: scale(0);
    opacity: 0;
  }
}
@keyframes pk2 {
  0%,
  28% {
    transform: scale(0);
    opacity: 0;
  }
  34% {
    transform: scale(1.2);
    opacity: 1;
  }
  38%,
  90% {
    transform: scale(1);
    opacity: 1;
  }
  97%,
  100% {
    transform: scale(0);
    opacity: 0;
  }
}
@keyframes pk3 {
  0%,
  48% {
    transform: scale(0);
    opacity: 0;
  }
  54% {
    transform: scale(1.2);
    opacity: 1;
  }
  58%,
  90% {
    transform: scale(1);
    opacity: 1;
  }
  97%,
  100% {
    transform: scale(0);
    opacity: 0;
  }
}
@keyframes on1 {
  0%,
  3%,
  24%,
  100% {
    background: #fff;
    color: var(--muted);
    border-color: var(--line-strong);
  }
  4%,
  22% {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
  }
}
@keyframes on2 {
  0%,
  23%,
  44%,
  100% {
    background: #fff;
    color: var(--muted);
    border-color: var(--line-strong);
  }
  24%,
  42% {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
  }
}
@keyframes on3 {
  0%,
  43%,
  64%,
  100% {
    background: #fff;
    color: var(--muted);
    border-color: var(--line-strong);
  }
  44%,
  62% {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
  }
}
@keyframes on4 {
  0%,
  63%,
  92%,
  100% {
    background: #fff;
    color: var(--muted);
    border-color: var(--line-strong);
  }
  64%,
  90% {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
  }
}
/* ------------------------------------------------------------------ */
/* Securite (encre)                                                    */
/* ------------------------------------------------------------------ */
.ink {
  background: var(--ink);
  color: var(--ink-text);
  overflow: hidden;
  isolation: isolate;
}
.ink::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(700px 500px at 85% 10%, rgba(79, 70, 229, 0.3), transparent 70%),
    radial-gradient(600px 500px at 5% 95%, rgba(124, 58, 237, 0.25), transparent 70%);
}
.ink .section-head p {
  color: var(--ink-muted);
}
.ink .section-head h2 {
  color: #fff;
}
.ink .section-head h2 .serif {
  color: #c4b5fd;
}
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.tcard {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--ink-line);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.tcard:hover {
  transform: translateY(-5px);
  border-color: rgba(165, 180, 252, 0.35);
  box-shadow: 0 30px 60px -30px rgba(79, 70, 229, 0.55);
}
.tcard.t-iso {
  grid-row: span 2;
}
.tcard.t-cost {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
}
.tcard.t-cost > * {
  flex: 1 1 50%;
}
.tcard.t-cost .tbody {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 36px;
}
.tbody {
  padding: 22px 24px 26px;
}
.tbody h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: #fff;
}
.t-iso .tbody h3,
.t-cost .tbody h3 {
  font-size: 26px;
}
.tbody p {
  font-size: 15px;
  color: var(--ink-muted);
}
.tscene {
  position: relative;
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, rgba(99, 102, 241, 0.2), transparent 70%);
  border-bottom: 1px solid var(--ink-line);
  font-family: var(--sans);
}
.t-iso .tscene {
  flex: 1;
  min-height: 300px;
}
.t-cost .tscene {
  border-bottom: 0;
  border-left: 1px solid var(--ink-line);
}
.js .trust.reveal:not(.in) .tscene * {
  animation-play-state: paused;
}

/* isolation : trois bases separees par des cloisons */
.t-iso .tscene {
  --g: 34px; /* ecart entre bases et cloisons : positions du paquet calculees a partir de lui */
}
.tenants {
  display: flex;
  align-items: flex-end;
  gap: var(--g);
}
.tenant {
  display: grid;
  justify-items: center;
  gap: 10px;
}
.tenant b {
  font: 600 11.5px/1 var(--mono);
  color: #c7d2fe;
}
.db {
  position: relative;
  width: 62px;
  height: 78px;
  border-radius: 50% / 14px;
  background: linear-gradient(180deg, #6366f1, #4338ca);
  box-shadow: 0 16px 30px -12px rgba(79, 70, 229, 0.8), inset 0 -10px 0 rgba(0, 0, 0, 0.15);
}
.db::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 28px;
  border-radius: 50%;
  background: #818cf8;
}
.db i {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 22px;
  height: 7px;
  margin-left: -11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  animation: sec-pulse 2.4s ease-in-out infinite;
}
.db.b {
  background: linear-gradient(180deg, #8b5cf6, #6d28d9);
}
.db.b::before {
  background: #a78bfa;
}
.db.c {
  background: linear-gradient(180deg, #0ea5e9, #0369a1);
}
.db.c::before {
  background: #7dd3fc;
}
.db.b i {
  animation-delay: 0.8s;
}
.db.c i {
  animation-delay: 1.6s;
}
.wall {
  align-self: stretch;
  width: 3px;
  margin-bottom: 22px;
  border-radius: 3px;
  background: repeating-linear-gradient(180deg, #f43f5e 0 6px, transparent 6px 11px);
  opacity: 0.7;
}
.packet {
  position: absolute;
  z-index: 1;
  top: calc(50% - 26px);
  /* centre de la base A (largeur totale : 3 x 62 + 2 x 3 + 4 ecarts), moins la demi-largeur du paquet */
  left: calc(50% - (192px + 4 * var(--g)) / 2 + 31px - 33px);
  font: 600 9.5px/1 var(--mono);
  color: #fff;
  background: #4f46e5;
  border: 1px solid #a5b4fc;
  padding: 6px 8px;
  border-radius: 7px;
  animation: sec-packet 4s var(--ease) infinite;
}
.denied {
  position: absolute;
  z-index: 1;
  top: calc(50% - 92px);
  left: calc(50% - (192px + 4 * var(--g)) / 2 + 62px + var(--g));
  translate: -50% 0;
  font: 700 11px/1 var(--mono);
  color: #fff;
  background: #e11d48;
  padding: 6px 9px;
  border-radius: 999px;
  box-shadow: 0 8px 18px -6px rgba(225, 29, 72, 0.7);
  animation: sec-denied 4s var(--ease) infinite;
}
@keyframes sec-pulse {
  50% {
    opacity: 0.15;
  }
}
@keyframes sec-packet {
  0%,
  10% {
    transform: translateX(0);
  }
  38% {
    transform: translateX(calc(var(--g) - 4px));
  }
  44% {
    transform: translateX(calc(var(--g) * 0.4)) rotate(-8deg);
  }
  70%,
  100% {
    transform: translateX(0);
  }
}
@keyframes sec-denied {
  0%,
  36% {
    opacity: 0;
    transform: scale(0.6);
  }
  42% {
    opacity: 1;
    transform: scale(1.1);
  }
  48%,
  72% {
    opacity: 1;
    transform: scale(1);
  }
  80%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

/* roles */
.t-roles .tscene {
  gap: 7px;
  align-content: center;
}
.role {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  animation: sec-role 6s infinite;
}
.role.r2 {
  animation-delay: 2s;
}
.role.r3 {
  animation-delay: 4s;
}
.who {
  width: 82px;
  font: 600 11px/1 var(--mono);
  color: #c7d2fe;
}
.perm {
  font: 600 10.5px/1 var(--sans);
  padding: 5px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.perm.ok {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
}
.perm.ok::before {
  content: "✓ ";
}
.perm.no {
  color: #fda4af;
  background: rgba(244, 63, 94, 0.12);
  animation: sec-shake 6s infinite;
}
.perm.no::before {
  content: "🔒 ";
}
@keyframes sec-role {
  0%,
  30% {
    background: rgba(99, 102, 241, 0.14);
    border-color: rgba(165, 180, 252, 0.3);
  }
  34%,
  100% {
    background: transparent;
    border-color: transparent;
  }
}
@keyframes sec-shake {
  0%,
  8%,
  20%,
  100% {
    transform: none;
  }
  11% {
    transform: translateX(-3px);
  }
  14% {
    transform: translateX(3px);
  }
  17% {
    transform: translateX(-2px);
  }
}

/* secrets */
.t-secret .tscene {
  gap: 12px;
  align-content: center;
}
.keyfield {
  width: min(240px, 100%);
  background: rgba(15, 14, 23, 0.7);
  border: 1px solid #3a3950;
  border-radius: 10px;
  padding: 9px 12px;
}
.keyfield small {
  display: block;
  font-size: 10px;
  color: var(--ink-muted);
  margin-bottom: 5px;
}
.keyval {
  display: grid;
  font: 600 13px/1.2 var(--mono);
  color: #fff;
}
.keyval > span {
  grid-area: 1 / 1;
}
.keyval .plain {
  animation: sec-plain 5s infinite;
}
.keyval .masked {
  color: #a5b4fc;
  letter-spacing: 1px;
  animation: sec-masked 5s infinite;
}
.vault {
  font: 600 11px/1 var(--mono);
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(110, 231, 183, 0.3);
  padding: 6px 10px;
  border-radius: 999px;
  animation: sec-masked 5s infinite;
}
@keyframes sec-plain {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 1;
  }
  25%,
  40% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
  46%,
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 0;
  }
}
@keyframes sec-masked {
  0%,
  42% {
    opacity: 0;
    transform: scale(0.96);
  }
  50%,
  92% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}

/* historique : fil des modifications */
.feed {
  width: min(270px, 100%);
  height: 108px;
  overflow: hidden;
  mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
}
.feed-track {
  display: grid;
  gap: 6px;
  animation: sec-feed 8s var(--ease) infinite;
}
.ev {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 10.5px;
  color: var(--ink-muted);
  white-space: nowrap;
}
.ev b {
  color: #fff;
  font-weight: 600;
}
.ev time {
  margin-left: auto;
  font: 500 10px var(--mono);
  color: #6f6f88;
}
.av {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 8.5px/1 var(--mono);
  color: #fff;
  background: var(--primary);
}
.av.dv {
  background: #7c3aed;
}
@keyframes sec-feed {
  0%,
  18% {
    transform: translateY(0);
  }
  25%,
  43% {
    transform: translateY(-36px);
  }
  50%,
  68% {
    transform: translateY(-72px);
  }
  75%,
  93% {
    transform: translateY(-108px);
  }
  100% {
    transform: translateY(-144px);
  }
}

/* connexion Microsoft */
.sso {
  display: grid;
  justify-items: center;
}
.sso > span {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 9px;
  white-space: nowrap;
}
.sso-btn {
  background: #fff;
  color: #1f2430;
  animation: sec-sso-btn 5s infinite;
}
.ms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: 14px;
  height: 14px;
}
.ms i {
  background: #6b7280;
}
.sso-load {
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.16);
  animation: sec-sso-load 5s infinite;
}
.spin-d {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(165, 180, 252, 0.3);
  border-top-color: #a5b4fc;
  animation: spin 0.8s linear infinite;
}
.sso-ok {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(110, 231, 183, 0.3);
  animation: sec-sso-ok 5s infinite;
}
@keyframes sec-sso-btn {
  0%,
  22% {
    opacity: 1;
    transform: none;
  }
  26% {
    opacity: 1;
    transform: scale(0.94);
  }
  30%,
  100% {
    opacity: 0;
    transform: scale(0.94);
  }
}
@keyframes sec-sso-load {
  0%,
  29%,
  56%,
  100% {
    opacity: 0;
  }
  32%,
  53% {
    opacity: 1;
  }
}
@keyframes sec-sso-ok {
  0%,
  55% {
    opacity: 0;
    transform: translateY(6px);
  }
  60%,
  95% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}

/* couts : recapitulatif d'un echange */
.receipt {
  width: min(330px, 100%);
  background: rgba(15, 14, 23, 0.75);
  border: 1px solid #2a2938;
  border-radius: 14px;
  padding: 14px 16px 16px;
  font-size: 12.5px;
  color: var(--ink-muted);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.8);
}
.rc-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 6px;
  border-bottom: 1px dashed #3a3950;
}
.rc-head b {
  color: #fff;
  font-weight: 600;
}
.rc-head span {
  font: 600 10.5px var(--mono);
  color: #c4b5fd;
}
.rc-row,
.rc-total {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}
.rc-row b {
  font: 600 12.5px var(--mono);
  color: #e0e7ff;
  font-variant-numeric: tabular-nums;
}
.rc-total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed #3a3950;
  color: #fff;
  font-weight: 600;
}
.rc-total b {
  font: 700 15px var(--mono);
  color: var(--star);
}
.rc-bar {
  height: 5px;
  margin-top: 10px;
  border-radius: 3px;
  background: #2a2938;
  overflow: hidden;
}
.rc-bar i {
  display: block;
  height: 100%;
  width: 22%;
  border-radius: 3px;
  background: linear-gradient(90deg, #6ee7b7, var(--star));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.6s 0.3s var(--ease);
}
.trust.in .rc-bar i,
html:not(.js) .rc-bar i {
  transform: none;
}

/* ------------------------------------------------------------------ */
/* FAQ                                                                 */
/* ------------------------------------------------------------------ */
.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: start;
}
.faq-side {
  position: sticky;
  top: 110px;
}
.faq-side .section-head {
  margin-bottom: 32px;
}

/* carte "assistant en ligne" */
.faq-bot {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 22px 22px 24px;
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(79, 70, 229, 0.45);
}
.fb-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.fb-head img {
  width: 36px;
  height: 36px;
  animation: faq-bob 4s ease-in-out infinite;
}
.fb-head b {
  display: block;
  font-size: 15px;
}
.fb-head small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--success);
  font-weight: 600;
}
.live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #12b76a;
  animation: faq-live 2s ease-out infinite;
}
.faq-bot p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 18px;
}
@keyframes faq-bob {
  50% {
    transform: translateY(-3px) rotate(-4deg);
  }
}
@keyframes faq-live {
  0% {
    box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.55);
  }
  70%,
  100% {
    box-shadow: 0 0 0 8px rgba(18, 183, 106, 0);
  }
}

/* questions / reponses facon conversation */
.faq {
  display: grid;
  gap: 12px;
}
.faq details {
  border-radius: 18px;
  transition: background 0.3s;
}
.faq details[open] {
  background: rgba(79, 70, 229, 0.04);
  padding-bottom: 8px;
}
/* ouverture fluide (navigateurs recents ; les autres ouvrent sans transition) */
:root {
  interpolate-size: allow-keywords;
}
.faq details::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete;
}
.faq details[open]::details-content {
  block-size: auto;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 56px 18px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  position: relative;
  transition: background 0.35s var(--ease), color 0.35s, box-shadow 0.35s, transform 0.35s var(--ease), border-radius 0.35s;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover {
  transform: translateX(4px);
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.35), 0 16px 30px -22px rgba(79, 70, 229, 0.6);
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 14px;
  height: 14px;
  translate: 0 -50%;
  background: var(--primary);
  clip-path: polygon(50% 0%, 64% 36%, 100% 50%, 64% 64%, 50% 100%, 36% 64%, 0% 50%, 36% 36%);
  transition: rotate 0.35s var(--ease), background 0.3s;
}
.q-ico {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--primary);
  transition: background 0.35s, color 0.35s;
}
.q-ico svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}
/* question ouverte : devient une bulle "message envoye" */
.faq details[open] summary {
  background: var(--primary);
  color: #fff;
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 18px 34px -20px rgba(79, 70, 229, 0.8);
  transform: none;
}
.faq details[open] summary::after {
  rotate: 45deg;
  background: var(--star);
}
.faq details[open] .q-ico {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* reponse de l'assistant */
.a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px 4px;
}
.a-ava {
  width: 30px;
  height: 30px;
  flex: none;
  margin-top: 2px;
}
.a-bubble {
  position: relative;
  background: #fff;
  border-radius: 4px 16px 16px 16px;
  padding: 14px 18px;
  box-shadow: 0 0 0 1px var(--line), 0 14px 28px -24px rgba(31, 36, 48, 0.5);
}
.a-bubble p {
  color: #3b4150;
  font-size: 16px;
}
.faq details[open] .a {
  animation: faq-in 0.45s var(--ease) both;
}
.a-dots {
  display: none;
  gap: 5px;
  padding: 6px 2px;
}
.a-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a5b4fc;
  animation: faq-dot 0.9s ease-in-out infinite;
}
.a-dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.a-dots i:nth-child(3) {
  animation-delay: 0.3s;
}
/* "l'assistant ecrit..." pendant un court instant apres l'ouverture */
.faq details.typing .a-dots {
  display: inline-flex;
}
.faq details.typing .a-bubble p {
  display: none;
}
.faq details:not(.typing)[open] .a-bubble p {
  animation: faq-in 0.4s var(--ease) both;
}
@keyframes faq-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@keyframes faq-dot {
  0%,
  60%,
  100% {
    transform: none;
    opacity: 0.5;
  }
  30% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

/* ------------------------------------------------------------------ */
/* CTA final + formulaire                                              */
/* ------------------------------------------------------------------ */
.cta {
  padding: 0 0 130px;
}
.cta-card {
  position: relative;
  border-radius: 30px;
  background: var(--ink);
  color: var(--ink-text);
  padding: 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  overflow: hidden;
  isolation: isolate;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(600px 420px at 0% 0%, rgba(79, 70, 229, 0.55), transparent 70%),
    radial-gradient(600px 420px at 100% 100%, rgba(124, 58, 237, 0.45), transparent 70%);
}
.cta-card h2 {
  font-size: clamp(36px, 4vw, 54px);
  color: #fff;
  margin: 22px 0 18px;
}
.cta-card h2 .serif {
  color: var(--star);
}
.cta-card p {
  color: var(--ink-muted);
  font-size: 18px;
}
.form {
  display: grid;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ink-line);
  padding: 28px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
}
.form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form label {
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: #c9c8da;
}
.form input,
.form textarea {
  font: 15px var(--sans);
  color: #fff;
  background: rgba(15, 14, 23, 0.6);
  border: 1px solid #3a3950;
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form input::placeholder,
.form textarea::placeholder {
  color: #6f6f88;
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.3);
}
.form textarea {
  min-height: 96px;
  resize: vertical;
}
.form .btn {
  justify-content: center;
  margin-top: 4px;
}
.form-status {
  font-size: 14px;
  color: #6ee7b7;
  min-height: 1.4em;
}

/* ------------------------------------------------------------------ */
/* Pied de page                                                        */
/* ------------------------------------------------------------------ */
.footer {
  background: var(--ink);
  color: var(--ink-muted);
  font-size: 14.5px;
  padding: 72px 0 0;
}
.footer a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer a:hover {
  color: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer .brand {
  color: #fff;
}
.footer-about p {
  margin-top: 16px;
  max-width: 30ch;
  line-height: 1.55;
}
.footer-by {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  font: 600 11.5px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6f6f88;
}
.footer-by img {
  height: 26px;
  width: auto;
  background: #fff;
  border-radius: 6px;
  padding: 5px 8px;
}
.footer h3 {
  font: 600 11.5px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6f6f88;
  margin-bottom: 18px;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}
.footer address {
  font-style: normal;
  line-height: 1.7;
}
.footer-bottom {
  border-top: 1px solid var(--ink-line);
  padding: 24px 0 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  font-size: 13px;
  color: #6f6f88;
}
.footer-bottom p {
  max-width: 70ch;
}

/* ------------------------------------------------------------------ */
/* Apparition au defilement                                            */
/* ------------------------------------------------------------------ */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 1080px) {
  .story {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .story-stage {
    order: -1;
    top: 72px;
    z-index: 5;
    padding: 14px 0 18px;
    background: linear-gradient(var(--paper-2) 88%, rgba(239, 239, 247, 0));
  }
  .sw-fit {
    max-width: 560px;
    margin: 0 auto;
  }
  .story-dots {
    margin-top: 12px;
  }
  .story-step {
    min-height: 62vh;
  }
  .problems {
    grid-template-columns: 1fr 1fr;
  }
  .problem:nth-child(2) {
    margin-top: 0;
  }
  .hero-grid,
  .cta-card,
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .stage {
    max-width: 640px;
    margin: 30px auto 40px;
  }
  .doc {
    transform: none;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 70px;
  }
  .steps::before {
    display: none;
  }
  .uses,
  .trust {
    grid-template-columns: repeat(2, 1fr);
  }
  .tcard.t-iso {
    grid-row: auto;
    grid-column: 1 / -1;
  }
  .t-iso .tscene {
    min-height: 220px;
  }
  .faq-side {
    position: static;
  }
  .cta-card {
    padding: 48px 36px;
  }
}
@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-about {
    grid-column: 1 / -1;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  .nav-links,
  .nav .btn {
    display: none;
  }
  .nav-toggle {
    display: grid;
  }
  .nav.open {
    background: rgba(15, 14, 23, 0.96);
  }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 20px;
    background: rgba(15, 14, 23, 0.96);
    border-bottom: 1px solid var(--ink-line);
  }
  .nav.open .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--ink-line);
    font-size: 17px;
  }
  .hero {
    padding: 120px 0 90px;
  }
  .section {
    padding: 90px 0;
  }
  .problems {
    grid-template-columns: 1fr;
  }
  .js .problem.reveal.in:nth-child(2),
  .problem:nth-child(2) {
    margin-top: 0;
  }
  .steps,
  .uses,
  .trust {
    grid-template-columns: 1fr;
  }
  .tcard.t-cost {
    flex-direction: column;
  }
  .t-cost .tscene {
    order: -1;
    border-left: 0;
    border-bottom: 1px solid var(--ink-line);
  }
  .tcard.t-cost .tbody {
    padding: 22px 24px 26px;
  }
  .use.wide {
    grid-column: auto;
    flex-direction: column;
  }
  .use.wide .uscene {
    order: -1;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    min-height: 190px;
  }
  .chat {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: -30px 16px 0;
  }
  .doc {
    min-height: 460px;
    padding: 30px 18px 34px;
  }
  .form .row {
    grid-template-columns: 1fr;
  }
  .cta-card {
    padding: 40px 22px;
    border-radius: 22px;
  }
  .answer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ------------------------------------------------------------------ */
/* Pages legales                                                       */
/* ------------------------------------------------------------------ */
.legal-hero {
  background: var(--ink);
  color: var(--ink-text);
  padding: 150px 0 70px;
}
.legal-hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  color: #fff;
  margin: 22px 0 14px;
}
.legal-hero p {
  color: var(--ink-muted);
}
.legal {
  padding: 70px 0 110px;
}
.legal .wrap {
  max-width: 820px;
}
.legal h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 48px 0 14px;
}
.legal h2:first-child {
  margin-top: 0;
}
.legal p,
.legal li {
  color: #3b4150;
}
.legal p + p {
  margin-top: 12px;
}
.legal ul {
  padding-left: 22px;
  margin: 12px 0 0;
}
.legal li + li {
  margin-top: 6px;
}
.legal dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 24px;
  margin: 0;
  padding: 24px 26px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--line);
}
.legal dt {
  font-weight: 600;
  color: var(--text);
}
.legal dd {
  margin: 0;
  color: #3b4150;
}
.legal a {
  color: var(--primary);
}
.todo {
  font: 600 12.5px var(--mono);
  color: #92400e;
  background: #fef3c7;
  border-radius: 5px;
  padding: 2px 7px;
}
@media (max-width: 600px) {
  .legal dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .legal dd {
    margin-bottom: 10px;
  }
}
@media (max-width: 760px) {
  .nav .btn.back {
    display: inline-flex;
  }
}
@media (max-width: 520px) {
  .faq summary {
    font-size: 16px;
    padding: 14px 44px 14px 12px;
    gap: 10px;
  }
  .faq summary::after {
    right: 14px;
  }
  .a {
    gap: 8px;
    padding: 12px 6px 2px;
  }
  .a-ava {
    width: 24px;
    height: 24px;
  }
  .a-bubble {
    padding: 12px 14px;
  }
  .a-bubble p {
    font-size: 15px;
  }
  .t-iso .tscene {
    --g: 16px;
  }
  .story-dots {
    gap: 5px;
    flex-wrap: nowrap;
  }
  .story-dots button {
    font-size: 10.5px;
    padding: 6px 7px;
    white-space: nowrap;
  }
}

/* ------------------------------------------------------------------ */
/* Pages de contenu : cas d'usage, support, informations légales       */
/* ------------------------------------------------------------------ */
.nav-links a[aria-current="page"] {
  color: #fff;
}
.page-hero {
  position: relative;
  background: var(--ink);
  color: var(--ink-text);
  padding: 140px 0 84px;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(700px 420px at 10% 0%, rgba(79, 70, 229, 0.4), transparent 70%),
    radial-gradient(600px 380px at 95% 100%, rgba(124, 58, 237, 0.28), transparent 70%);
}
.page-hero h1 {
  font-size: clamp(38px, 5.2vw, 64px);
  color: #fff;
  margin: 22px 0 20px;
  max-width: 18ch;
}
.page-hero h1 .serif {
  color: var(--star);
}
.page-hero .lead {
  font-size: 19px;
  color: var(--ink-muted);
  max-width: 62ch;
}
.page-hero .hero-cta {
  margin-top: 34px;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  font: 500 13px/1.4 var(--mono);
  color: #6f6f88;
}
.crumbs a {
  color: var(--ink-muted);
  text-decoration: none;
}
.crumbs a:hover {
  color: #fff;
}
.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: #4a4960;
}
/* bloc de contenu */
.block {
  padding: 96px 0 0;
}
.block.last {
  padding-bottom: 110px;
}
.block .section-head {
  margin-bottom: 40px;
}
.block .section-head h2 {
  font-size: clamp(30px, 3.6vw, 44px);
}
.pains {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gains {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.pain,
.gain {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 26px 26px 28px;
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -50px rgba(31, 36, 48, 0.45);
}
.pain h3,
.gain h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 14px 0 8px;
}
.gain h3 {
  margin-top: 0;
}
.pain p,
.gain p {
  font-size: 15.5px;
  color: var(--muted);
}
.gain h3::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 10px;
  vertical-align: -1px;
  background: var(--star);
  clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%);
}
/* plan du template : une carte par zone */
.zplan {
  display: grid;
  gap: 16px;
}
.zcard {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 8px 32px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: 0 0 0 1px var(--line);
  border-left: 4px solid var(--zone);
}
.zcard.master {
  border-left-color: var(--master);
}
.zcard h3 {
  font-size: 19px;
  letter-spacing: -0.02em;
  margin-top: 12px;
}
.zcard p {
  font-size: 15.5px;
  color: #3b4150;
}
.zcard .prompt {
  margin-top: 14px;
  font: 13.5px/1.6 var(--mono);
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}
.zcard .prompt::before {
  content: "Consigne de l\2019 agent";
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.chips span {
  font: 500 12px var(--mono);
  color: var(--zone);
  background: var(--zone-soft);
  padding: 4px 8px;
  border-radius: 5px;
}
/* texte courant (support, cas d'usage) */
.callout {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--soft);
  border: 1px solid #dcdcfb;
  color: #3730a3;
  font-size: 15.5px;
}
/* documentation : sommaire collant + contenu */
/* grilles de liens : hub des cas d'usage, cas voisins, pages légales */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.case {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 26px 26px 24px;
  text-decoration: none;
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -50px rgba(31, 36, 48, 0.45);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.case:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.3), 0 40px 70px -45px rgba(79, 70, 229, 0.45);
}
.case h3 {
  font-size: 21px;
  letter-spacing: -0.02em;
  margin: 14px 0 8px;
}
.case p {
  font-size: 15px;
  color: var(--muted);
  flex: 1;
}
.case .more {
  margin-top: 18px;
  font-weight: 600;
  font-size: 15px;
  color: var(--primary);
}
.use .use-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--primary);
  text-decoration: none;
}
.use .use-link:hover {
  text-decoration: underline;
}
.legal-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 56px;
}
.legal-links .case {
  padding: 18px 22px;
}
.legal-links .case h3 {
  font-size: 18px;
  margin: 0 0 4px;
}
.legal-links .case[aria-current="page"] {
  box-shadow: 0 0 0 2px var(--primary);
}
/* formulaire de support */
.form select {
  font: 15px var(--sans);
  color: #fff;
  background: rgba(15, 14, 23, 0.6);
  border: 1px solid #3a3950;
  border-radius: 10px;
  padding: 12px 14px;
}
.form select:focus {
  outline: none;
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.3);
}
.cta-card address {
  font-style: normal;
  margin-top: 26px;
  line-height: 1.8;
  color: var(--ink-muted);
}
.cta-card address a {
  color: #c7d2fe;
}
@media (max-width: 1080px) {
  .pains,
  .case-grid,
  .legal-links {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .page-hero {
    padding: 112px 0 64px;
  }
  .pains,
  .gains,
  .case-grid,
  .legal-links {
    grid-template-columns: 1fr;
  }
  .zcard {
    grid-template-columns: 1fr;
    padding: 22px 20px;
  }
  .legal-links {
    gap: 10px;
    margin-bottom: 40px;
  }
  .legal-links .case p {
    display: none;
  }
  .block {
    padding-top: 72px;
  }
}
