/* ══════════════════════════════════════════════
   ACTINUANCE — Édition « À la une » : Swift CSP
   Identité : réseau interbancaire, précision, preuve.
   Dominante froide lavande / violet moyen, orange en touche.
   Chargée après ax-spot.css.
════════════════════════════════════════════════ */

.ax-spot--swift {
  --sp-night: #0f0a1a;
  --sp-night-2: #171029;
  --sp-panel: #211739;
  --sp-violet: #9b70e0;
  --sp-mid: #9b70e0;
  --sp-lav: #c7a0ff;
  --sp-line: rgba(199, 160, 255, 0.16);
  --sp-grad: linear-gradient(100deg, #ffffff 0%, #c7a0ff 42%, #9b70e0 100%);
  --sw-light: #f1e8ff;
  --sw-ink: #0f0a1a;
  --sw-deep: #632a7c;
}

/* Titres : dégradé froid, l'orange reste en accent. */
.ax-spot--swift h1 em { background-image: linear-gradient(100deg, #c7a0ff 0%, #9b70e0 70%, #f18847 130%); }

/* ─── HERO : réseau d'établissements ────────────── */
.ax-spot--swift .sp-aurora i:nth-child(1) { background: radial-gradient(circle, rgba(155, 112, 224, 0.7), transparent 65%); }
.ax-spot--swift .sp-aurora i:nth-child(2) { width: 22vw; height: 22vw; top: 58%; left: 70%; background: radial-gradient(circle, rgba(241, 136, 71, 0.4), transparent 65%); }
.ax-spot--swift .sp-aurora i:nth-child(3) { width: 42vw; height: 42vw; background: radial-gradient(circle, rgba(199, 160, 255, 0.32), transparent 65%); }

/* Trame millimétrée au lieu de la trame de points. */
.ax-spot--swift .sp-hero::before {
  background-image:
    linear-gradient(rgba(199, 160, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 160, 255, 0.075) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center;
  mask-image: radial-gradient(ellipse 75% 70% at 68% 48%, #000 15%, transparent 78%);
}

.sw-net {
  position: absolute;
  top: 50%;
  right: -1%;
  z-index: -1;
  width: min(52vw, 760px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
}
.sw-net svg { width: 100%; height: 100%; overflow: visible; }
.sw-net .sw-faces,
.sw-net .sw-edges,
.sw-net .sw-nodes { transform-box: view-box; transform-origin: 50% 50%; }
.sw-face { opacity: 0.9; }
.sw-face--core { opacity: 0.95; }
.sw-edges path { stroke-opacity: 0.5; }
.sw-edges path:last-child { stroke: #fff; stroke-opacity: 0.7; }
.sw-pk { stroke-dasharray: 3 97; stroke-dashoffset: 100; opacity: 0; }
.sw-pk--1, .sw-pk--3 { stroke: #ff914d; }
.sw-pk--2, .sw-pk--4 { stroke: #fff; }
.sw-nodes circle { fill: #c7a0ff; }
.sw-nodes .sw-node--in { fill: #fff; }
.sw-nodes .sw-halo { fill: none; stroke: #c7a0ff; stroke-opacity: 0.5; transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: no-preference) {
  .sw-edges path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: sw-draw 2.4s var(--ax-ease) 0.2s forwards; }
  .sw-edges path:nth-child(2) { animation-delay: 0.6s; }
  .sw-edges path:nth-child(3) { animation-delay: 1.2s; }
  .sw-face { opacity: 0; animation: sw-fade 1.6s ease 1.4s forwards; }
  .sw-face:nth-child(2) { animation-delay: 1.6s; }
  .sw-face:nth-child(3) { animation-delay: 1.8s; }
  .sw-face:nth-child(4) { animation-delay: 2s; }
  .sw-face--core { animation-delay: 1.9s; }
  .sw-pk { animation: sw-packet 5.5s linear infinite; }
  .sw-pk--1 { animation-delay: 2.6s; }
  .sw-pk--2 { animation-delay: 3.9s; }
  .sw-pk--3 { animation-delay: 5.2s; }
  .sw-pk--4 { animation-delay: 6.5s; }
  .sw-nodes .sw-halo { animation: sw-ping 3.2s ease-out infinite; }
  .sw-nodes .sw-halo:nth-child(2) { animation-delay: 1.1s; }
  .sw-nodes .sw-halo:nth-child(3) { animation-delay: 2.2s; }
}
@keyframes sw-draw { to { stroke-dashoffset: 0; } }
@keyframes sw-fade { to { opacity: 0.9; } }
@keyframes sw-packet {
  0% { stroke-dashoffset: 100; opacity: 0; }
  6% { opacity: 1; }
  90% { opacity: 1; }
  100% { stroke-dashoffset: 3; opacity: 0; }
}
@keyframes sw-ping {
  0% { transform: scale(0.5); stroke-opacity: 0.8; }
  100% { transform: scale(2.2); stroke-opacity: 0; }
}

.ax-spot--swift .sp-badge b { background: linear-gradient(100deg, #c7a0ff, #9b70e0); }
.ax-spot--swift .sp-cue i { background: linear-gradient(var(--sp-lav), transparent); }

/* ─── CONTEXTE : registre ───────────────────────── */
.sw-ctx-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.sw-ctx-head { position: sticky; top: calc(var(--nav-height) + 64px); }
.sw-ctx-head .sp-h2 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); }
.sw-ledger { list-style: none; }
.sw-entry {
  position: relative;
  display: grid;
  grid-template-columns: clamp(84px, 9vw, 132px) 1fr;
  gap: 8px clamp(16px, 2.4vw, 32px);
  padding-block: clamp(32px, 4vw, 52px);
  border-top: 1px solid var(--sp-line);
}
.sw-entry:last-child { border-bottom: 1px solid var(--sp-line); }
.sw-entry-rule {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #f18847, #c7a0ff 30%, #9b70e0);
  transform-origin: left;
  transform: scaleX(1);
}
.sw-entry-n {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(3.2rem, 6vw, 5.2rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
  background: linear-gradient(160deg, #fff, #c7a0ff 55%, #9b70e0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px rgba(199, 160, 255, 0.6);
  transition: color 0.5s ease;
}
.sw-entry h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
}
.sw-entry p { max-width: 60ch; margin-top: 14px; font-size: 1.04rem; line-height: 1.65; color: var(--sp-soft); }

/* État animé : le numéro est en filaire tant que l'entrée n'est pas lue. */
.sw-ledger.is-live .sw-entry-rule { transform: scaleX(0); }
.sw-ledger.is-live .sw-entry-n { background: none; }
.sw-ledger.is-live .sw-entry.is-on .sw-entry-n {
  background: linear-gradient(160deg, #fff, #c7a0ff 55%, #9b70e0);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ─── PHRASE CLÉ : révélée par balayage ─────────── */
.sw-quote {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 140px 24px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(50% 55% at 50% 50%, rgba(155, 112, 224, 0.3), transparent 72%),
    var(--sp-night);
}
.sw-quote::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(199, 160, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 160, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center;
  mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 10%, transparent 75%);
}
.sw-quote-box { position: relative; display: grid; max-width: 1100px; text-align: center; }
.sw-quote-box > p {
  grid-area: 1 / 1;
  font-family: 'Raleway', sans-serif;
  font-size: clamp(2.5rem, 7vw, 6.2rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.sw-quote-box em { font-style: normal; }
.sw-quote-ghost { color: transparent; -webkit-text-stroke: 1px rgba(199, 160, 255, 0.3); }
.sw-quote-text { color: #fff; clip-path: inset(0 0 var(--sw-hide, 0%) 0); }
.sw-quote-text em { color: #f18847; }
.sw-quote-scan {
  position: absolute;
  left: -4vw;
  right: -4vw;
  top: calc(100% - var(--sw-hide, 0%));
  height: 2px;
  background: linear-gradient(90deg, transparent, #f18847 20%, #ff914d 50%, #f18847 80%, transparent);
  box-shadow: 0 0 24px rgba(241, 136, 71, 0.6);
  opacity: var(--sw-scan, 0);
  pointer-events: none;
}

/* ─── ÉVOLUTIONS : écran partagé, numéro collant ── */
.sw-evo {
  position: relative;
  margin-inline: clamp(8px, 1.4vw, 20px);
  padding-block: clamp(88px, 10vw, 140px);
  border-radius: clamp(28px, 4vw, 48px);
  background:
    linear-gradient(rgba(99, 42, 124, 0.06) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(99, 42, 124, 0.06) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--sw-light);
  color: var(--sw-ink);
}
.ax-spot--swift .sw-evo .sp-kicker { color: var(--sw-deep); }
.ax-spot--swift main .sw-evo .sp-h2 { color: var(--sw-ink); }
.sw-evo-years { margin-top: 14px; font-size: 1rem; font-weight: 500; color: #5a6070; }
.sw-evo-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 96px);
  margin-top: clamp(24px, 4vw, 48px);
}
.sw-evo-stage {
  position: sticky;
  top: calc(var(--nav-height) + 6vh);
  align-self: start;
  display: grid;
  gap: 28px;
  padding-top: 6vh;
}
.sw-evo-num {
  height: 1em;
  overflow: hidden;
  font-family: 'Raleway', sans-serif;
  font-size: clamp(9rem, 19vw, 17rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.07em;
}
.sw-evo-reel { transform: translateY(calc(var(--sw-i, 0) * -1em)); transition: transform 0.9s var(--ax-ease); }
.sw-evo-reel span {
  display: block;
  height: 1em;
  background: linear-gradient(170deg, #7c3aed 0%, #9b70e0 60%, #f18847 115%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sw-evo-icons { position: relative; width: 72px; height: 72px; color: #7c3aed; }
.sw-evo-icons svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.6s var(--ax-ease);
}
.sw-evo[data-i="0"] .sw-evo-icons svg:nth-child(1),
.sw-evo[data-i="1"] .sw-evo-icons svg:nth-child(2),
.sw-evo[data-i="2"] .sw-evo-icons svg:nth-child(3),
.sw-evo:not([data-i]) .sw-evo-icons svg:nth-child(1) { opacity: 1; transform: none; }
.sw-evo-bar { width: min(100%, 320px); height: 3px; border-radius: 3px; background: rgba(99, 42, 124, 0.15); overflow: hidden; }
.sw-evo-bar i { display: block; height: 100%; background: linear-gradient(90deg, #9b70e0, #f18847); transform: scaleX(var(--sw-p, 0)); transform-origin: left; }

.sw-evo-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 62vh;
  padding-block: 40px;
  transition: opacity 0.6s ease;
}
.sw-evo-k { font-family: 'Raleway', sans-serif; font-size: 1rem; font-weight: 700; color: #f18847; }
.sw-evo-item h3 {
  margin-top: 12px;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--sw-ink);
}
.sw-evo-item p { max-width: 54ch; margin-top: 18px; font-size: 1.08rem; line-height: 1.65; color: #5a6070; }
.sw-evo.is-live .sw-evo-item { opacity: 0.28; }
.sw-evo.is-live .sw-evo-item.is-on { opacity: 1; }

/* ─── MÉTHODE : dossier de preuves qui se coche ─── */
.ax-spot--swift .sp-steps-fill { background: linear-gradient(#c7a0ff, #9b70e0, #f18847); }
.ax-spot--swift .sp-step.is-on .sp-step-dot { background: var(--sp-lav); box-shadow: 0 0 0 8px rgba(199, 160, 255, 0.16); }

.sw-proof {
  position: sticky;
  top: calc(var(--nav-height) + 48px);
  overflow: hidden;
  padding: clamp(26px, 3.4vw, 40px);
  border-radius: 28px;
  background: linear-gradient(160deg, #7030a0, #632a7c 50%, #2b1440);
  color: #fff;
  box-shadow: 0 40px 90px rgba(99, 42, 124, 0.35);
}
.sw-proof::after {
  content: '';
  position: absolute;
  right: -34px;
  bottom: -44px;
  width: 150px;
  aspect-ratio: 1 / 0.88;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: rgba(199, 160, 255, 0.28);
  pointer-events: none;
}
.sw-proof > * { position: relative; z-index: 1; }
.sw-proof h3 { margin-bottom: 14px; font-size: 1.35rem; font-weight: 700; color: #fff; }
.sw-proof ul { list-style: none; }
.sw-proof li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 2px 14px;
  align-items: start;
  padding-block: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.sw-box {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid rgba(199, 160, 255, 0.7);
  border-radius: 7px;
  transition: background 0.4s ease, border-color 0.4s ease;
}
.sw-box svg { width: 18px; height: 18px; fill: none; stroke: var(--sw-ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sw-box path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.sw-proof-label { font-size: 0.98rem; line-height: 1.4; color: #fff; transition: color 0.4s ease; }
.sw-proof-cat { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.03em; color: var(--sp-lav); }
.sw-proof li .sw-box { background: #f18847; border-color: #f18847; }
.sw-proof-meter { height: 3px; margin-top: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.sw-proof-meter i { display: block; height: 100%; background: linear-gradient(90deg, #c7a0ff, #f18847); transform-origin: left; transform: scaleX(var(--sw-done, 1)); transition: transform 0.6s var(--ax-ease); }
.sw-proof-note { margin-top: 22px; padding-right: 64px; font-size: 0.95rem; line-height: 1.55; color: rgba(255, 255, 255, 0.78); }

/* État animé : cases vides tant que l'étape n'est pas atteinte. */
.sw-proof.is-live li .sw-box { background: transparent; border-color: rgba(199, 160, 255, 0.7); }
.sw-proof.is-live li .sw-box path { stroke-dashoffset: 1; transition: stroke-dashoffset 0.5s var(--ax-ease) 0.15s; }
.sw-proof.is-live li .sw-proof-label { color: rgba(255, 255, 255, 0.6); }
.sw-proof.is-live li.is-done .sw-box { background: #f18847; border-color: #f18847; }
.sw-proof.is-live li.is-done .sw-box path { stroke-dashoffset: 0; }
.sw-proof.is-live li.is-done .sw-proof-label { color: #fff; }

/* ─── ATOUTS ────────────────────────────────────── */
.ax-spot--swift .sp-tile::before { background: radial-gradient(420px circle at var(--x, 50%) var(--y, 120%), rgba(155, 112, 224, 0.4), transparent 60%); }
.ax-spot--swift .sp-tile--a { background: linear-gradient(165deg, #632a7c, var(--sp-night-2) 72%); }
.ax-spot--swift .sp-tile--a i { background: linear-gradient(160deg, #c7a0ff, #9b70e0); }
.ax-spot--swift .sp-tile--b { background: #c7a0ff; border-color: transparent; }
.ax-spot--swift .sp-tile--b::before { display: none; }
.ax-spot--swift .sp-tile--b h3 { color: var(--sw-ink); }
.ax-spot--swift .sp-tile--b p { color: rgba(15, 10, 26, 0.8); }
.ax-spot--swift .sp-tile--b i { background: #632a7c; }
.ax-spot--swift .sp-tile--c i { background: #f18847; }

/* ─── ALLER PLUS LOIN ───────────────────────────── */
.ax-spot--swift .sp-more .ax-pubcard {
  border: 1px solid var(--sp-line);
  background: var(--sp-night-2);
  color: var(--sp-soft);
}
.ax-spot--swift .sp-more a.ax-pubcard:hover { background: var(--sp-panel); }
.ax-spot--swift .sp-more .ax-pubcard h4 { color: #fff; }
.ax-spot--swift .sp-more .ax-pubcard .ax-link { color: var(--sp-lav); }
.ax-spot--swift .ax-linkcard:nth-child(3n) { background: #c7a0ff; color: var(--sw-ink); }
.ax-spot--swift .sp-more .ax-linkcard:nth-child(3n + 1) h3,
.ax-spot--swift .sp-more .ax-linkcard:nth-child(3n) h3 { color: var(--sw-ink); }

/* ─── CONTACT, BARRE DE SECTIONS ────────────────── */
.ax-spot--swift .ax-contact {
  background:
    radial-gradient(60% 80% at 50% 120%, rgba(155, 112, 224, 0.5), transparent 70%),
    var(--sp-night-2);
}
.ax-spot--swift .ax-subnav.is-docked .ax-subnav-bar {
  border-color: rgba(199, 160, 255, 0.5);
  background: rgba(99, 42, 124, 0.92);
  box-shadow: 0 0 0 6px rgba(155, 112, 224, 0.18), 0 16px 50px rgba(0, 0, 0, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .sw-evo-reel,
  .sw-evo-icons svg { transition: none; }
}

/* ─── RESPONSIVE ────────────────────────────────── */
@media (max-width: 1000px) {
  .sw-ctx-grid { grid-template-columns: 1fr; }
  .sw-ctx-head { position: static; }
  .sw-proof { position: static; }
}
@media (max-width: 899px) {
  .sw-evo-grid { grid-template-columns: 1fr; }
  .sw-evo-stage { display: none; }
  .sw-evo-item { min-height: 0; padding-block: 28px; border-top: 1px solid rgba(99, 42, 124, 0.15); }
  .sw-evo.is-live .sw-evo-item { opacity: 1; }
}
@media (max-width: 760px) {
  .sw-net { top: auto; bottom: -4%; right: -32%; width: 108vw; opacity: 0.45; transform: none; }
  .sw-entry { grid-template-columns: 1fr; }
  .sw-entry-n { font-size: 3rem; }
  .sw-quote { min-height: 72vh; }
  .sw-proof-note { padding-right: 0; padding-bottom: 72px; }
}
