/* Delaporte & Cie : version animée (s'ajoute à /assets/styles.css) */

/* ---------- En-tête fixe et progression ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  color: var(--on-navy);
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
.site-header.scrolled {
  padding-block: 12px;
  background: rgba(14, 31, 63, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.7);
}
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--brass);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}

/* ---------- Accueil ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 110px); }
.hero .wrap {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}
.hero h1 { max-width: 14ch; font-size: clamp(2.4rem, 4.8vw, 3.9rem); }
.hero .lead { font-size: 1.12rem; }
.hero-glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background:
    radial-gradient(closest-side, rgba(184, 151, 95, 0.22), transparent 70%),
    radial-gradient(closest-side at 30% 70%, rgba(142, 164, 200, 0.18), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.split .w { display: inline-block; }

/* La « machine à transformer » */
.tx {
  --accent: #00c6b8;
  position: relative;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(180, 192, 214, 0.22);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9);
}
.tx-head { display: flex; align-items: center; gap: 12px; }
.tx-logo {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  transition: border-color 0.5s;
}
.tx-logo svg { width: 26px; height: 26px; }
.tx-title { display: grid; line-height: 1.25; }
.tx-name { font-family: var(--serif); font-size: 1.25rem; color: #fff; }
.tx-from { font-size: 0.88rem; color: var(--on-navy-muted); }

/* Pastille Avant / Après, partagée par l'accueil et les prestations */
.tx-state, .sv-caption {
  position: relative;
  margin-left: auto;
  width: 72px;
  height: 28px;
  flex: none;
  overflow: hidden;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}
.tx-state > span, .sv-caption > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: inherit;
  transition: transform 0.45s cubic-bezier(0.6, 0, 0.2, 1);
}
.tx-state-before, .sv-cap-before { border: 1px solid rgba(180, 192, 214, 0.4); color: var(--on-navy-muted); }
.tx-state-after, .sv-cap-after { background: var(--accent); color: #0e1f3f; transform: translateY(100%); }
.is-after .tx-state-before, .is-after .sv-cap-before { transform: translateY(-100%); }
.is-after .tx-state-after, .is-after .sv-cap-after { transform: translateY(0); }

.tx-stage {
  position: relative;
  height: 300px;
  margin-top: 16px;
  border-radius: 12px;
  background: rgba(3, 10, 26, 0.55);
  overflow: hidden;
}
.tx-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.tx-to { font-family: var(--serif); font-size: 1.1rem; color: #fff; }
.tx-bars { display: flex; gap: 6px; }
.tx-bars i { position: relative; width: 28px; height: 3px; border-radius: 2px; background: rgba(180, 192, 214, 0.3); overflow: hidden; }
.tx-bars i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.tx-bars i.done::after { transform: scaleX(1); }
.tx-bars i.on::after { animation: fill var(--dur, 5s) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }

/* Scènes : une seule visible à la fois, chacune en deux temps */
.scene, .sv { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.5s, visibility 0s 0.5s; }
.scene.active, .sv.active { opacity: 1; visibility: visible; transition: opacity 0.5s; }
.ba-before, .ba-after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
}
.ba-after { opacity: 0; transform: scale(0.94); filter: blur(6px); }
.is-after .ba-before { opacity: 0; transform: scale(1.05); filter: blur(6px); }
.is-after .ba-after { opacity: 1; transform: none; filter: none; }

/* Éléments qui apparaissent l'un après l'autre une fois la transformation faite */
.ba-after :is(.checks li, .pdf dl > div, .chip, .next, .s-hero, .s-cols span, .d-kpis span, .outs span, .monitor li) {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  transition-delay: calc(0.3s + var(--d, 0) * 0.14s);
}
.is-after .ba-after :is(.checks li, .pdf dl > div, .chip, .next, .s-hero, .s-cols span, .d-kpis span, .outs span, .monitor li) {
  opacity: 1;
  transform: none;
}

/* Écho */
.wave { display: flex; align-items: center; gap: 5px; height: 130px; }
.wave i {
  width: 6px;
  height: 100%;
  border-radius: 3px;
  background: #00c6b8;
  transform: scaleY(0.2);
  animation: wv 0.9s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -0.17s);
}
.wave i:nth-child(3n) { height: 70%; }
.wave i:nth-child(4n + 1) { height: 48%; }
.wave i:nth-child(5n + 2) { height: 86%; }
@keyframes wv { to { transform: scaleY(1); } }
.rec {
  position: absolute;
  bottom: 18px;
  left: 50%;
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 0.86rem;
  color: var(--on-navy-muted);
}
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: #e5484d; animation: blink 1.2s ease-in-out infinite; }
.rec-green { background: #1bd8ae; }
@keyframes blink { 50% { opacity: 0.25; } }

.sheet, .pdf {
  width: min(82%, 340px);
  padding: 18px 20px 20px;
  border-radius: 12px;
  background: #f8fafc;
  color: var(--ink);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.8);
}
.sheet-title { font-family: var(--serif); font-size: 1.1rem; color: var(--navy); }
.sheet .line {
  display: block;
  width: var(--w);
  height: 7px;
  margin-top: 10px;
  border-radius: 4px;
  background: #d5ddea;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
  transition-delay: calc(0.25s + var(--d) * 0.12s);
}
.is-after .sheet .line { transform: scaleX(1); }
.checks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: 0.92rem; font-weight: 500; }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks svg { width: 17px; height: 17px; color: #00756d; }

/* Relève */
.envelope { position: relative; width: 210px; margin-bottom: 24px; }
.envelope svg { width: 100%; height: auto; fill: rgba(255, 255, 255, 0.05); stroke: #b4c0d6; stroke-width: 2; stroke-linejoin: round; }
.scan {
  position: absolute;
  left: -14px;
  right: -14px;
  top: 0;
  height: 3px;
  border-radius: 2px;
  background: #1bd8ae;
  box-shadow: 0 0 18px 4px rgba(27, 216, 174, 0.55);
  animation: scan 1.4s ease-in-out infinite alternate;
}
@keyframes scan { to { top: 100%; } }
.pdf-title { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.pdf-title svg { width: 18px; height: 18px; color: #6a45b8; }
.pdf dl { margin: 12px 0 0; display: grid; gap: 8px; font-size: 0.9rem; }
.pdf dl > div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.pdf dt { color: var(--muted); }
.pdf dd { margin: 0; font-weight: 600; text-align: right; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(180, 138, 253, 0.16);
  color: #6a45b8;
  font-size: 0.82rem;
  font-weight: 600;
}
.chip svg { width: 15px; height: 15px; }

/* Oremus */
.scatter { position: absolute; inset: 0; }
.scatter span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--on-navy);
  font-size: 0.88rem;
  animation: drift 3.2s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -0.6s);
}
@keyframes drift { from { transform: translate(-6px, 4px) rotate(-4deg); } to { transform: translate(8px, -6px) rotate(3deg); } }
.map { position: absolute; inset: 14px; border-radius: 10px; background: #f2ede7; overflow: hidden; }
.street { position: absolute; height: 9px; background: #fff; }
.s1 { left: -10%; right: -10%; top: 30%; transform: rotate(-6deg); }
.s2 { left: -10%; right: -10%; top: 62%; transform: rotate(4deg); }
.s3 { top: -10%; bottom: -10%; left: 44%; width: 9px; height: auto; transform: rotate(12deg); }
.river { position: absolute; left: -10%; right: -10%; top: 78%; height: 18px; background: #c9dbe8; transform: rotate(-5deg); }
.pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 20px;
  height: 20px;
  border-radius: 50% 50% 50% 0;
  background: #91022d;
  box-shadow: 0 4px 10px -2px rgba(58, 10, 24, 0.5);
  opacity: 0;
  transform: translateY(-28px) rotate(-45deg);
  transition: opacity 0.3s ease, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: calc(0.3s + var(--d) * 0.16s);
}
.is-after .pin { opacity: 1; transform: translateY(0) rotate(-45deg); }
.pin-main { width: 26px; height: 26px; background: #fac656; border: 3px solid #91022d; }
.next {
  position: absolute;
  left: 50%;
  bottom: 16px;
  translate: -50% 0;
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  color: #3a0a18;
  font-size: 0.88rem;
  box-shadow: 0 10px 24px -14px rgba(58, 10, 24, 0.6);
}
.next strong { color: #91022d; margin-right: 6px; }

/* ---------- Titres de section en ligne ---------- */
.row-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px 48px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.row-head p { max-width: 33rem; color: var(--muted); font-size: 1.08rem; }
.on-navy .row-head h2 { color: #fff; }
.on-navy .row-head p { color: var(--on-navy-muted); }

/* ---------- Aperçus : lecture automatique ---------- */
.ap-progress { flex: 1 1 120px; max-width: 220px; height: 2px; background: rgba(180, 192, 214, 0.25); border-radius: 2px; overflow: hidden; }
.ap-progress i { display: block; height: 100%; background: var(--brass); transform: scaleX(0); transform-origin: left; }
.ap-progress i.run { animation: fill var(--dur, 4.5s) linear forwards; }
.ap-progress.paused i { animation-play-state: paused; }

/* ---------- Prestations : récit au défilement ---------- */
.services .row-head { margin-bottom: 8px; }
.story {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 80px);
}
.story-step {
  min-height: 46vh;
  padding-block: clamp(36px, 6vh, 64px);
  opacity: 0.32;
  transition: opacity 0.4s ease;
}
.story-step.active { opacity: 1; }
.story-step h3 { margin-top: 16px; font-size: 1.6rem; }
.shift { display: grid; gap: 4px; margin-top: 12px; }
.shift .from { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--brass); text-decoration-thickness: 1.5px; }
.shift .to { font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; color: var(--navy); }
.story-step > p:last-child { margin-top: 10px; color: var(--muted); max-width: 30rem; }
.story-cta { margin-top: 8px; }

.story-visual {
  --accent: var(--brass);
  position: sticky;
  top: 110px;
  align-self: start;
  margin-top: 36px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -40px rgba(14, 31, 63, 0.55);
  overflow: hidden;
}
.sv-frame { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sv-dots { display: flex; gap: 6px; }
.sv-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.sv-url { position: relative; flex: 1; height: 28px; border-radius: 8px; background: var(--tint); font-size: 0.85rem; color: var(--muted); overflow: hidden; }
.sv-url > span { position: absolute; inset: 0; display: flex; align-items: center; gap: 6px; padding-inline: 12px; transition: opacity 0.4s, transform 0.4s; }
.sv-url svg { width: 14px; height: 14px; color: #1f8f4e; }
.sv-url-after { opacity: 0; transform: translateY(8px); color: var(--ink); }
.is-after .sv-url-before { opacity: 0; transform: translateY(-8px); }
.is-after .sv-url-after { opacity: 1; transform: none; }
.sv-stage { position: relative; height: 360px; background: var(--tint); overflow: hidden; }
.story-visual .sv-caption { position: absolute; right: 16px; bottom: 16px; z-index: 2; margin: 0; }
.story-visual .sv-cap-before { background: #fff; border-color: var(--line); color: var(--muted); }

/* 0 : site */
.wire, .site { position: absolute; inset: 22px; display: grid; grid-template-rows: 44% auto auto 1fr; gap: 10px; }
.wire > span, .w-cols span { border: 2px dashed var(--steel); border-radius: 8px; }
.w-line { width: var(--w); height: 12px; border-radius: 6px !important; }
.w-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.w-cols span { min-height: 70px; }
.w-note {
  position: absolute;
  right: 6%;
  top: 14%;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--brass);
  transform: rotate(-4deg);
}
.site { grid-template-rows: 54% 1fr; gap: 12px; }
.s-hero { position: relative; border-radius: 10px; background: var(--navy); padding: 22px; display: grid; align-content: center; gap: 10px; }
.s-h1 { width: 62%; height: 14px; border-radius: 7px; background: #fff; }
.s-h2 { width: 40%; height: 9px; border-radius: 5px; background: var(--steel); }
.s-btn { width: 96px; height: 26px; margin-top: 6px; border-radius: 6px; background: var(--brass); }
.s-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.s-cols span { border-radius: 10px; background: linear-gradient(180deg, var(--navy-soft) 0 45%, #fff 45%); border: 1px solid var(--line); }

/* 1 : application */
.files { position: absolute; inset: 0; }
.file {
  position: absolute;
  left: var(--x);
  top: var(--y);
  padding: 10px 14px 10px 12px;
  border-radius: 8px;
  background: #fff;
  border-left: 4px solid;
  box-shadow: 0 10px 24px -16px rgba(14, 31, 63, 0.6);
  font-size: 0.88rem;
  white-space: nowrap;
  transform: rotate(var(--r));
  animation: bob 3s ease-in-out infinite alternate;
}
.f-xls { border-color: #1f8f4e; }
.f-pdf { border-color: #c0392b; }
.f-mail { border-color: #2f6fd6; }
.file:nth-child(2) { animation-delay: -1s; }
.file:nth-child(3) { animation-delay: -2s; }
@keyframes bob { to { translate: 0 -8px; } }
.dash { position: absolute; inset: 22px; display: grid; grid-template-columns: 56px 1fr; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.d-side { background: var(--navy); display: grid; align-content: start; gap: 12px; padding: 18px 14px; }
.d-side span { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.3); }
.d-side span:first-child { background: var(--brass); }
.d-main { padding: 18px; display: grid; grid-template-rows: auto auto 1fr; gap: 14px; }
.d-title { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); }
.d-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.d-kpis span { height: 48px; border-radius: 8px; background: var(--tint); }
.d-chart { display: flex; align-items: end; gap: 10px; padding-top: 6px; }
.d-chart i {
  flex: 1;
  height: var(--h);
  border-radius: 5px 5px 0 0;
  background: var(--navy-soft);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(0.4s + var(--d) * 0.08s);
}
.d-chart i:last-child { background: var(--brass); }
.is-after .d-chart i { transform: scaleY(1); }

/* 2 : automatisation */
.pile { position: relative; width: 170px; height: 200px; }
.pile span {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px -14px rgba(14, 31, 63, 0.6);
  transform: translate(calc(var(--i) * 7px), calc(var(--i) * -7px)) rotate(calc((var(--i) - 2) * 3deg));
  animation: shuffle 2.4s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -0.4s);
}
@keyframes shuffle { to { translate: 4px -4px; } }
.pile-count {
  position: absolute;
  right: -30px;
  top: -18px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: #c0392b;
  color: #fff;
  font-size: 0.82rem;
  white-space: nowrap;
}
.flow { display: flex; align-items: center; gap: 0; padding-inline: 20px; }
.node { flex: none; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--navy); }
.node svg { width: 26px; height: 26px; }
.n-ai { background: var(--navy); color: #fff; box-shadow: 0 0 0 6px rgba(184, 151, 95, 0.25); animation: glow 1.6s ease-in-out infinite alternate; }
@keyframes glow { to { box-shadow: 0 0 0 12px rgba(184, 151, 95, 0.08); } }
.pipe { position: relative; width: clamp(28px, 6vw, 60px); height: 2px; background: var(--steel); }
.pipe i { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--brass); animation: travel 1.3s linear infinite; }
.p2 i { animation-delay: 0.65s; }
@keyframes travel { from { left: -5px; } to { left: calc(100% - 5px); } }
.outs { display: grid; gap: 8px; margin-left: 4px; }
.outs span { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: 0.88rem; font-weight: 500; white-space: nowrap; }
.outs svg { width: 16px; height: 16px; color: var(--navy); }

/* 3 : suivi */
.launch { width: min(70%, 300px); text-align: center; }
.launch p { font-family: var(--serif); font-size: 1.3rem; color: var(--navy); }
.launch .bar { display: block; margin-top: 14px; height: 8px; border-radius: 4px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.launch .bar i { display: block; height: 100%; background: var(--navy-soft); transform-origin: left; animation: load 1.8s ease-in-out infinite; }
@keyframes load { from { transform: scaleX(0.05); } to { transform: scaleX(1); } }
.monitor { width: min(84%, 380px); padding: 20px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: rgba(31, 143, 78, 0.1); color: #1f6e40; font-weight: 600; font-size: 0.88rem; }
.live { width: 9px; height: 9px; border-radius: 50%; background: #1f8f4e; box-shadow: 0 0 0 0 rgba(31, 143, 78, 0.5); animation: ping 1.6s ease-out infinite; }
@keyframes ping { to { box-shadow: 0 0 0 10px rgba(31, 143, 78, 0); } }
.pulse { width: 100%; height: 60px; margin-top: 12px; }
.pulse path { fill: none; stroke: var(--navy-soft); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw-line 2.6s linear infinite; }
@keyframes draw-line { to { stroke-dashoffset: -520; } }
.monitor ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.monitor li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--tint); font-size: 0.84rem; font-weight: 500; }
.monitor li svg { width: 14px; height: 14px; color: #1f8f4e; }

/* ---------- Méthode : la frise se trace à l'arrivée ---------- */
.about { background: var(--paper); }
.method .step-badge { transition: background 0.4s, color 0.4s, transform 0.4s; transition-delay: calc(var(--d) * 0.35s); }
.method .steps li:not(:last-child)::after { transform: scaleX(0); transform-origin: left; transition: transform 0.5s ease; transition-delay: calc(var(--d) * 0.35s + 0.2s); }
.method.drawn .steps li:not(:last-child)::after { transform: scaleX(1); }
.method.drawn .step-badge { background: var(--navy); color: #fff; }

/* ---------- Contact ---------- */
.contact-art svg { fill: none; stroke-width: 1.5; }
.ca-arch { stroke: var(--steel); stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s ease; }
.ca-inner { stroke: var(--brass); transition-delay: 0.3s; }
.ca-floor { stroke: var(--steel); opacity: 0.6; }
.ca-env { stroke: #e8edf6; stroke-linejoin: round; animation: hover-env 3s ease-in-out infinite alternate; }
@keyframes hover-env { to { transform: translateY(-8px); } }
.contact-card.drawn .ca-arch { stroke-dashoffset: 0; }

/* ---------- Petits écrans ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { max-width: 18ch; }
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-visual { order: -1; top: calc(var(--hh, 64px) + 8px); z-index: 5; margin-top: 16px; }
  .sv-stage { height: 200px; }
  .sv-frame { padding: 8px 12px; }
  .story-step { min-height: 62vh; }
  .wire, .site, .dash { inset: 14px; }
  .flow { transform: scale(0.82); }
  .file { font-size: 0.8rem; }
  .method .steps li:not(:last-child)::after { transform: scaleY(0); transform-origin: top; }
  .method.drawn .steps li:not(:last-child)::after { transform: scaleY(1); }
}
@media (max-width: 560px) {
  .site-header.scrolled .nav { display: none; }
  .story-step { min-height: 70vh; }
  .wire .w-note { display: none; }
  .tx-stage { height: 260px; }
  .wave { height: 100px; gap: 4px; }
  .wave i { width: 5px; }
  .pile { transform: scale(0.8); }
}

/* ---------- Mouvement réduit : on montre directement le résultat ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .split .w { opacity: 1 !important; transform: none !important; }
}

/* Entrée du titre, mot par mot (une seule fois, au chargement) */
@media (prefers-reduced-motion: no-preference) {
  .split.ready .w { opacity: 0; transform: translateY(0.45em); animation: word-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: calc(var(--i) * 55ms + 0.1s); }
  @keyframes word-in { to { opacity: 1; transform: none; } }
}

/* =====================================================================
   Version « IA pour tous » : visuel d'accueil, boutons, réalisations
   ===================================================================== */
:root { --ai-violet: #8b7bff; --ai-teal: #2dd4bf; }

/* Halo d'ambiance de l'accueil */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; width: 46vw; height: 46vw; max-width: 640px; max-height: 640px; border-radius: 50%; filter: blur(70px); opacity: 0.38; }
.aurora i:nth-child(1) { right: -8%; top: -18%; background: var(--ai-violet); animation: aur1 18s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { right: 18%; bottom: -30%; background: var(--ai-teal); opacity: 0.22; animation: aur2 22s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { left: -14%; top: 30%; background: var(--brass); opacity: 0.14; animation: aur1 26s ease-in-out infinite alternate-reverse; }
@keyframes aur1 { to { transform: translate(-8%, 10%) scale(1.1); } }
@keyframes aur2 { to { transform: translate(10%, -8%) scale(0.92); } }
.hero .wrap { z-index: 1; }
.hero h1 { max-width: 15ch; }

.btn-ai { background: var(--ai-teal); color: var(--navy); border: 0; }
.btn-ai:hover { background: #5eead4; }

.reassure { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.reassure li { display: inline-flex; align-items: center; gap: 8px; color: var(--on-navy-muted); font-size: 0.95rem; }
.reassure svg { width: 18px; height: 18px; color: var(--ai-teal); }

/* Le visuel : votre tâche → IA → résultat */
.ai { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; }
.ai-col { display: grid; gap: 10px; align-content: center; min-height: 260px; }
.ai-label { font-size: 0.86rem; color: var(--on-navy-muted); }
.ai-slot { position: relative; height: 66px; }
.ai-chip {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.3;
  transition: transform 0.7s cubic-bezier(0.5, 0, 0.2, 1), opacity 0.6s ease;
}
.ai-chip b { font-weight: 500; }
.ai-chip svg { flex: none; width: 22px; height: 22px; color: var(--steel); }
.ai-result { background: #fff; color: var(--ink); border-color: #fff; box-shadow: 0 18px 40px -20px rgba(139, 123, 255, 0.9); }
.ai-result svg { color: #6a4fe0; }
.ai-chip.enter { opacity: 0; transform: translateX(-26px); transition: none; }
.ai-chip.go { opacity: 0; transform: translateX(90px) scale(0.5); }
.ai-result.enter { transform: translateX(-60px) scale(0.6); }
.ai-done { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; min-height: 84px; }
.ai-done li { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--on-navy-muted); animation: done-in 0.5s ease both; }
.ai-done svg { width: 15px; height: 15px; color: var(--ai-teal); }
@keyframes done-in { from { opacity: 0; transform: translateY(-6px); } }

.ai-core { display: flex; align-items: center; }
.beam { position: relative; width: clamp(18px, 3vw, 40px); height: 2px; background: linear-gradient(90deg, rgba(139, 123, 255, 0.15), rgba(45, 212, 191, 0.6)); }
.beam i { position: absolute; top: -3px; left: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--ai-teal); box-shadow: 0 0 10px var(--ai-teal); opacity: 0; }
.beam.on i { animation: zip 0.6s ease-in forwards; }
@keyframes zip { 0% { left: -4px; opacity: 1; } 100% { left: calc(100% - 4px); opacity: 0; } }

.orb { position: relative; width: clamp(120px, 12vw, 160px); aspect-ratio: 1; display: grid; place-items: center; }
.orb-glow {
  position: absolute;
  inset: -35%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 123, 255, 0.55), rgba(45, 212, 191, 0.22) 45%, transparent 70%);
  filter: blur(10px);
  animation: breathe 4s ease-in-out infinite alternate;
  transition: opacity 0.4s, transform 0.4s;
}
@keyframes breathe { from { opacity: 0.7; transform: scale(0.95); } to { opacity: 1; transform: scale(1.05); } }
.orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--ai-violet), var(--ai-teal), var(--brass), var(--ai-violet));
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%);
  mask: radial-gradient(circle, transparent 60%, #000 61%);
  animation: spin 7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.orb-core {
  position: relative;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: radial-gradient(circle at 35% 30%, #2c4180, var(--navy) 72%);
  box-shadow: inset 0 0 24px rgba(139, 123, 255, 0.45);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.6rem;
  transition: transform 0.4s ease;
}
.orb-core svg { width: 24px; height: 24px; color: var(--ai-teal); }
.ai.busy .orb-ring { animation-duration: 1.1s; }
.ai.busy .orb-core { transform: scale(1.06); }
.ai.busy .orb-glow { opacity: 1; transform: scale(1.18); animation-play-state: paused; }

/* Prestations : l'IA mise en avant */
.ic-ai { background: linear-gradient(140deg, var(--ai-violet), var(--ai-teal)); color: var(--navy); }
.n-ai { background: linear-gradient(140deg, var(--ai-violet), var(--ai-teal)); color: var(--navy); }

/* Réalisations : description et images dans le même onglet */
.previews .ap-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.5fr);
  column-gap: clamp(24px, 4vw, 52px);
  align-items: start;
}
.ap-info { grid-row: 1 / span 2; padding-top: 6px; }
.previews .ap-frame, .previews .ap-foot { grid-column: 2; }
.ap-tagline { font-family: var(--serif); font-size: 1.5rem; line-height: 1.25; color: #fff; text-wrap: balance; }
.ap-points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.ap-points li { display: flex; gap: 10px; align-items: flex-start; color: var(--on-navy-muted); font-size: 0.97rem; line-height: 1.45; }
.ap-points svg { flex: none; width: 19px; height: 19px; margin-top: 2px; color: var(--site); }
.btn-site { margin-top: 24px; display: inline-flex; align-items: center; gap: 8px; background: var(--site); color: var(--navy); }
.btn-site svg { width: 16px; height: 16px; }
.btn-site:hover { filter: brightness(1.08); }

@media (max-width: 960px) {
  .ai { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 6px; margin-top: 8px; }
  .ai-col { min-height: 0; width: min(100%, 360px); }
  .ai-core { flex-direction: column; }
  .beam { width: 2px; height: 22px; background: linear-gradient(180deg, rgba(139, 123, 255, 0.15), rgba(45, 212, 191, 0.6)); }
  .beam.on i { animation-name: zip-v; }
  @keyframes zip-v { 0% { top: -4px; left: -3px; opacity: 1; } 100% { top: calc(100% - 4px); left: -3px; opacity: 0; } }
  .ai-chip { justify-content: center; }
  .ai-chip.go { transform: translateY(50px) scale(0.5); }
  .ai-result.enter { transform: translateY(-40px) scale(0.6); }
  .ai-done { display: none; }
  .previews .ap-panel { grid-template-columns: 1fr; }
  .ap-info { grid-row: auto; margin-bottom: 22px; }
  .previews .ap-frame, .previews .ap-foot { grid-column: 1; }
}

/* Visuel IA empilé : tâche, puis IA, puis résultat (lisible et large) */
.hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.ai { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 4px; }
.ai-col { min-height: 0; width: min(100%, 380px); gap: 8px; }
.ai-core { flex-direction: column; }
.beam { width: 2px; height: 26px; background: linear-gradient(180deg, rgba(139, 123, 255, 0.15), rgba(45, 212, 191, 0.7)); }
.beam i { left: -3px; }
.beam.on i { animation-name: zip-v; }
@keyframes zip-v { 0% { top: -4px; opacity: 1; } 100% { top: calc(100% - 4px); opacity: 0; } }
.ai-chip { justify-content: center; }
.ai-chip.go { transform: translateY(56px) scale(0.5); }
.ai-result.enter { transform: translateY(-46px) scale(0.6); }
.ai-done { justify-items: center; min-height: 66px; }
.aurora i:nth-child(1) { top: 6%; right: -4%; }
.aurora i:nth-child(2) { bottom: -20%; }
.aurora i:nth-child(3) { background: var(--ai-violet); opacity: 0.12; top: 45%; }
@media (max-width: 960px) { .ai-done { display: none; } }
