/* ==========================================================================
   $SEXY — feuille de style unique
   Reconstruction statique du site WordPress/Elementor
   ========================================================================== */

:root {
  --black: #000;
  --white: #fff;
  --grey-1: #c5c5c5;
  --grey-2: #a6a6a6;
  --salmon: #fd7469;
  --pink: #ff20b8;
  --pill-bg: #1c1c1c;

  --font-display: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-marquee: "Nexa regular", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --header-h: 80px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.visually-hidden { display: none !important; }

/* --------------------------------------------------------------------------
   Bouton
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  background: var(--pink);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  padding: 12px 14px;
  border-radius: 8px;
  transition: opacity .2s ease, transform .2s ease;
}
.btn:hover { opacity: .85; transform: translateY(-1px); }

/* Ne fait plus une pilule : le rayon vient de .btn (8px), comme demande.
   Cette variante ne porte plus que la typo et les marges internes. */
.btn--pill {
  font-family: var(--font-marquee);
  font-size: 18px;
  padding: 15px 25px 13px;
  white-space: nowrap;
}

/* Le rayon vient de .btn (8px) : le nom de la classe est conserve pour ne
   pas toucher au balisage, mais il ne decrit plus un rayon particulier. */
.btn--radius-sm {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 24px;
}

/* ==========================================================================
   PAGE D'ACCUEIL
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  padding: 0;
  pointer-events: none;
}
/* le retrait vertical passe sur le bloc du logo : le bandeau reste a ras du haut */
.site-header__inner {
  width: min(1420px, 100%);
  margin: 0 auto;
  padding: 10px 10px 0 186px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-header__logo { pointer-events: auto; display: inline-block; }
.site-header__logo img { width: 122px; height: auto; }

/* CTA d'en-tete : format compact facon mobile, colle a l'extremite droite et
   aligne verticalement sur le logo. Herite du fond rose / texte noir / rayon
   8px de .btn. Reste visible quand le bandeau boursier se replie. */
.site-header__cta {
  pointer-events: auto;
  flex: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 9px 14px;
  white-space: nowrap;
}

.scroller {
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.panel {
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  background: var(--black);
  padding: 0 10px;
}

.panel__inner {
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 20px;
}

.panel__media { display: flex; justify-content: center; }
.panel__media video,
.panel__media img {
  width: 100%;
  max-width: 710px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.panel__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 10px;
}

/* ordre des colonnes : la vidéo alterne gauche / droite */
.panel--media-right .panel__media { order: 2; }
.panel--media-right .panel__body { order: 1; }

.panel__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 6.7vw, 96px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--white);
}

.panel__lead {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 400;
  line-height: 1.35;
  color: var(--white);
  max-width: 690px;
}
.panel__lead strong { font-weight: 700; }

.panel__note {
  margin: 0;
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--grey-2);
}
.panel__note--light { color: var(--grey-1); font-weight: 400; }

/* dernière section, centrée */
.panel--center .panel__inner {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}
.panel--center .panel__body { align-items: center; }
.panel--center .panel__media img {
  width: auto;
  height: auto;
  max-width: min(800px, 90vw);
  max-height: 62dvh;
  aspect-ratio: auto;
  object-fit: contain;
}
.panel__kicker {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  color: var(--white);
}

/* ==========================================================================
   PAGES « APP » (step1 / step2 / step3 / metafans2)
   ========================================================================== */

.app-page {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  position: relative;
  background: var(--black);
}

.app-topbar {
  position: absolute;
  z-index: 30;
  top: 14px;
  left: 40px;
  right: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.app-topbar__logo img { width: 180px; height: auto; }

/* --- bandeaux défilants ------------------------------------------------- */
.marquees {
  position: absolute;
  z-index: 5;
  top: 27%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  user-select: none;
}

.marquee { overflow: hidden; width: 100%; }
.marquee--xl { height: clamp(52px, 16vh, 130px); }
.marquee--accent { height: clamp(36px, 10.7vh, 87px); }
.marquee__track {
  display: flex;
  align-items: center;
  height: 100%;
  width: max-content;
  will-change: transform;
  animation: marquee-left 24s linear infinite;
}
.marquee--reverse .marquee__track { animation-name: marquee-right; }

.marquee__item {
  font-family: var(--font-marquee);
  font-weight: 700;
  white-space: nowrap;
  padding-right: 40px;
}

.marquee--xl .marquee__item {
  font-size: clamp(64px, 11.3vw, 162px);
  letter-spacing: clamp(-20px, -1.4vw, -8px);
  line-height: 1;
  color: var(--white);
}

.marquee--accent .marquee__item {
  font-size: clamp(34px, 5.4vw, 78px);
  letter-spacing: clamp(-5px, -0.35vw, -2px);
  line-height: 1;
  color: var(--salmon);
}

@keyframes marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* --- téléphone central --------------------------------------------------- */
.app-phone {
  position: absolute;
  z-index: 20;
  top: 21px;
  left: 50%;
  transform: translateX(-50%);
  height: min(589px, calc(100dvh - 200px));
  aspect-ratio: 292 / 589;
}
.app-phone video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- navigation emoji ---------------------------------------------------- */
.app-nav {
  position: absolute;
  z-index: 25;
  left: 50%;
  bottom: 60px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-nav__item {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--pill-bg);
  font-size: 44px;
  line-height: 1;
  transition: transform .2s ease, background .2s ease;
}
.app-nav__item--sm { width: 74px; height: 74px; font-size: 34px; }
.app-nav__item:hover { transform: scale(1.06); background: #2a2a2a; }

/* --- pied de page -------------------------------------------------------- */
.app-social {
  position: absolute;
  z-index: 25;
  left: 20px;
  bottom: 20px;
  display: flex;
  gap: 20px;
  align-items: center;
}
.app-social a { display: grid; place-items: center; color: var(--white); }
.app-social svg { width: 22px; height: 22px; fill: currentColor; }

.app-domain {
  position: absolute;
  z-index: 25;
  right: 40px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-marquee);
  font-size: 14px;
  color: var(--white);
}
.app-domain svg { width: 13px; height: 13px; fill: currentColor; }

/* ==========================================================================
   ANIMATION « TRADING CARD »
   Section « Invest in your fav Models » de la page d accueil.
   Illustration purement decorative : tout est en cqw pour rester
   proportionnel a la largeur du conteneur carre.
   ========================================================================== */

.chartviz {
  --cv-card: #1b1b1b;
  --cv-card-2: #242424;
  --cv-brand: #fb25b3;
  --cv-up: #fb25b3;
  --cv-down: rgba(255, 255, 255, .28);
  --cv-muted: rgba(255, 255, 255, .45);

  position: relative;
  width: 100%;
  max-width: 710px;
  aspect-ratio: 1 / 1;
  container-type: inline-size;
  font-family: "Archivo", var(--font-body);
}

/* .panel__media img/video impose un carre : on neutralise pour les enfants */
.chartviz img,
.chartviz video {
  max-width: none;
  aspect-ratio: auto;
}

.chartviz__defs { position: absolute; width: 0; height: 0; }

/* --- la carte ------------------------------------------------------------- */
.cv-trade {
  position: absolute;
  left: 8%;
  top: 32%;
  width: 53%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.4cqw;
  padding: 2.6cqw;
  border-radius: 2.2cqw;
  background: var(--cv-card);
  opacity: 0;
  transform: translateY(6%) scale(.94);
}
.chartviz.is-playing .cv-trade { animation: cv-card-in .7s cubic-bezier(.22, 1, .3, 1) .1s forwards; }

.cv-brandrow { display: flex; align-items: center; gap: 1cqw; }
.cv-brandrow svg { width: 3cqw; height: 3cqw; }
.cv-brandrow b { font-size: max(1.5cqw, 10px); font-weight: 600; color: var(--white); }
.cv-tf { margin-left: auto; font-size: max(1.25cqw, 9px); color: var(--cv-muted); }

/* --- le graphique -------------------------------------------------------- */
.cv-chart {
  display: block;
  width: 100%;
  aspect-ratio: 100 / 32;
  overflow: visible;
}
.cv-gridline { stroke: rgba(255, 255, 255, .07); stroke-width: .12; }

.cv-cd {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(0);
}
.cv-cd line { stroke-width: .42; stroke-linecap: round; }
.cv-cd rect { stroke: none; }
.cv-cd--up line,
.cv-cd--up rect { stroke: var(--cv-up); fill: var(--cv-up); }
.cv-cd--down line,
.cv-cd--down rect { stroke: var(--cv-down); fill: var(--cv-down); }
.chartviz.is-playing .cv-cd {
  animation: cv-grow .34s cubic-bezier(.3, 1.4, .4, 1) forwards;
  animation-delay: calc(.35s + var(--i) * .035s);
}

.cv-trend {
  fill: none;
  stroke: var(--cv-brand);
  stroke-width: .75;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 .7px var(--cv-brand));
}
.chartviz.is-playing .cv-trend { animation: cv-draw 1.5s cubic-bezier(.45, 0, .25, 1) .55s forwards; }

.cv-area { fill: url(#cv-fade); opacity: 0; }
.chartviz.is-playing .cv-area { animation: cv-fade-in .8s ease-out 1.5s forwards; }

.cv-tip {
  fill: var(--cv-brand);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
}
.chartviz.is-playing .cv-tip { animation: cv-pop .4s cubic-bezier(.2, 1.6, .4, 1) 2.05s forwards; }

.cv-ring { fill: none; stroke: var(--cv-brand); stroke-width: .3; opacity: 0; }
.chartviz.is-playing .cv-ring { animation: cv-ripple 1.8s ease-out 2.3s infinite; }

/* --- chiffres et boutons -------------------------------------------------- */
.cv-stats {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: .4cqw;
}
.cv-stats small {
  display: block;
  margin-bottom: .4cqw;
  font-size: max(1.35cqw, 9px);
  color: var(--cv-muted);
}
.cv-stats strong {
  font-size: max(2.9cqw, 17px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.cv-pct {
  font-size: max(2.2cqw, 13px);
  font-weight: 700;
  color: var(--cv-brand);
  font-variant-numeric: tabular-nums;
}
.cv-stats__right { text-align: right; }

.cv-actions { display: flex; gap: 1.4cqw; margin-top: .6cqw; }
.cv-actions span {
  flex: 1;
  padding: max(1.5cqw, 7px) 0;
  border-radius: 1.6cqw;
  background: var(--cv-card-2);
  font-size: max(1.9cqw, 11px);
  font-weight: 600;
  text-align: center;
  color: var(--white);
}
.cv-buy.is-hit { animation: cv-press .3s ease-out; }

/* --- portrait ------------------------------------------------------------- */
.cv-shot {
  position: absolute;
  right: 7%;
  top: 22%;
  z-index: 1;
  width: 34%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 2.2cqw;
  background: var(--cv-card-2);
  opacity: 0;
  transform: rotate(4deg) translateX(18%);
}
.chartviz.is-playing .cv-shot { animation: cv-shot-in .8s cubic-bezier(.22, 1, .3, 1) .3s forwards; }
.cv-shot img,
.cv-shot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  filter: grayscale(1) contrast(1.06);
}

/* --- jetons flottants, curseur, etincelles -------------------------------- */
.cv-tok { position: absolute; z-index: 3; display: block; width: 12%; aspect-ratio: 1; opacity: 0; }
.cv-tok--1 { left: 4%; top: 10%; }
.cv-tok--2 { right: 5%; top: 5%; }
.cv-tok--3 { left: 14%; bottom: 6%; }
.chartviz.is-playing .cv-tok--1 {
  animation: cv-tok-in .7s cubic-bezier(.2, 1.4, .35, 1) .45s forwards, cv-bob 3.4s ease-in-out 1.2s infinite;
}
.chartviz.is-playing .cv-tok--2 {
  animation: cv-tok-in .7s cubic-bezier(.2, 1.4, .35, 1) .62s forwards, cv-bob 3.9s ease-in-out 1.4s infinite;
}
.chartviz.is-playing .cv-tok--3 {
  animation: cv-tok-in .7s cubic-bezier(.2, 1.4, .35, 1) .8s forwards, cv-bob 3.1s ease-in-out 1.6s infinite;
}

.cv-cursor {
  position: absolute;
  z-index: 4;
  left: 52%;
  top: 40%;
  width: 9%;
  opacity: 0;
  filter: drop-shadow(0 0 .4cqw rgba(0, 0, 0, .6));
}
.chartviz.is-playing .cv-cursor {
  animation: cv-hand-in .5s ease-out 2.4s forwards, cv-hand-move 1.1s cubic-bezier(.5, 0, .2, 1) 2.8s forwards;
}

.cv-spark {
  position: absolute;
  z-index: 4;
  width: 7%;
  opacity: 0;
  fill: none;
  stroke: var(--white);
  stroke-width: 3;
  stroke-linecap: round;
}
.cv-spark--1 { left: 24%; top: 58%; }
.cv-spark--2 { right: 30%; top: 26%; }
.chartviz.is-playing .cv-spark--1 { animation: cv-blink .5s ease-out 3.7s; }
.chartviz.is-playing .cv-spark--2 { animation: cv-blink .5s ease-out 1.1s; }

@keyframes cv-card-in { to { opacity: 1; transform: none; } }
@keyframes cv-shot-in { to { opacity: 1; transform: rotate(4deg) translateX(0); } }
@keyframes cv-grow { to { opacity: 1; transform: scaleY(1); } }
@keyframes cv-draw { to { stroke-dashoffset: 0; } }
@keyframes cv-fade-in { to { opacity: 1; } }
@keyframes cv-pop { to { opacity: 1; transform: scale(1); } }
@keyframes cv-ripple { 0% { opacity: .7; r: .6; } 100% { opacity: 0; r: 3.2; } }
@keyframes cv-tok-in {
  from { opacity: 0; transform: translateY(40%) scale(.4); }
  to { opacity: 1; transform: none; }
}
@keyframes cv-bob {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-7%) rotate(5deg); }
}
@keyframes cv-hand-in { to { opacity: 1; } }
@keyframes cv-hand-move { to { left: 24%; top: 65%; } }
@keyframes cv-press { 50% { transform: scale(.94); filter: brightness(1.5); } }
@keyframes cv-blink {
  0% { opacity: 0; transform: scale(.4); }
  40% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.3); }
}

@media (prefers-reduced-motion: reduce) {
  .chartviz.is-playing * { animation: none !important; }
  .chartviz.is-playing .cv-trade,
  .chartviz.is-playing .cv-shot,
  .chartviz.is-playing .cv-tok,
  .chartviz.is-playing .cv-cursor,
  .chartviz.is-playing .cv-area,
  .chartviz.is-playing .cv-tip,
  .chartviz.is-playing .cv-cd { opacity: 1; transform: none; }
  .chartviz.is-playing .cv-trend { stroke-dashoffset: 0; }
}

/* ==========================================================================
   ANIMATION « MASCOTTE »
   Derniere section, juste au-dessus de « Join us #SEXYArmy ».
   Cadence reglee sur le mode « rapide » du mock (--ms-speed : .65).
   Les translations des keyframes sont en unites utilisateur SVG :
   elles suivent donc le viewBox et restent proportionnelles a toute taille.
   ========================================================================== */

.mascot {
  --ms-brand: #fb25b3;
  --ms-brand-ink: #000;
  --ms-cape: #a8106c;
  --ms-cape-ink: #fff;
  --ms-limb: #fff;

  /* 1 = normal · .65 = rapide (valeurs du mock) */
  --ms-speed: .65;
  --ms-loop: 5s;

  width: min(440px, 80vw, 58dvh);
  aspect-ratio: 1 / 1;
}

.ms-toon { width: 100%; height: 100%; overflow: visible; }

/* animations calees sur la boucle maitresse */
.ms-t {
  animation-duration: calc(var(--ms-loop) * var(--ms-speed));
  animation-iteration-count: infinite;
}

/* Hors ecran : la boucle est mise en pause par le script.
   Par defaut elle tourne, pour que l animation fonctionne aussi sans JS. */
.mascot.is-paused,
.mascot.is-paused * { animation-play-state: paused; }

/* --- 1. l envol : pilote toute la sequence -------------------------------
   0-44 % au sol · 44-50 % accroupi · 50-58 % decollage
   58-61 % sortie de cadre · 61-90 % absent · 90-100 % retour              */
.ms-rig {
  transform-box: fill-box;
  transform-origin: 50% 92%;
  animation-name: ms-flight;
  animation-timing-function: linear;
}
@keyframes ms-flight {
  0%, 44%    { transform: none; opacity: 1; }
  50%        { transform: translateY(18px) scale(1.12, .85); opacity: 1; }
  54%        { transform: translate(14px, -40px) rotate(-14deg) scale(.96, 1.08); opacity: 1; }
  58%        { transform: translate(150px, -230px) rotate(-34deg) scale(1.18, .82); opacity: 1; }
  61%        { transform: translate(430px, -620px) rotate(-34deg) scale(1.45, .66); opacity: 0; }
  61.5%, 89% { opacity: 0; }
  90%        { transform: scale(.4); opacity: 0; }
  96%        { transform: scale(1.08); opacity: 1; }
  100%       { transform: none; opacity: 1; }
}

/* --- 2. le rebond au sol -------------------------------------------------- */
.ms-body {
  transform-box: fill-box;
  transform-origin: 50% 92%;
  animation: ms-hop calc(.92s * var(--ms-speed)) cubic-bezier(.45, 0, .55, 1) infinite;
}
@keyframes ms-hop {
  0%   { transform: translateY(0) scale(1.06, .94); }
  22%  { transform: translateY(-13%) scale(.95, 1.07); }
  50%  { transform: translateY(-19%) scale(1, 1); }
  78%  { transform: translateY(-7%) scale(.97, 1.04); }
  100% { transform: translateY(0) scale(1.06, .94); }
}

/* --- 3. la cape : couche externe qui s allonge, couche interne qui ondule - */
.ms-cape-out {
  transform-box: fill-box;
  transform-origin: 50% 4%;
  animation-name: ms-cape-fly;
  animation-timing-function: ease-out;
}
@keyframes ms-cape-fly {
  0%, 48%   { transform: none; }
  56%       { transform: scale(.9, 1.3); }
  61%       { transform: scale(.78, 1.6); }
  62%, 100% { transform: none; }
}
.ms-cape-in {
  transform-box: fill-box;
  transform-origin: 50% 4%;
  animation: ms-wave calc(1.5s * var(--ms-speed)) ease-in-out infinite;
}
@keyframes ms-wave {
  0%, 100% { transform: rotate(-3.5deg) skewX(2deg); }
  50%      { transform: rotate(3.5deg) skewX(-2deg); }
}

/* --- 4. membres et visage ------------------------------------------------- */
.ms-limb { transform-box: fill-box; }
.ms-arm-l { transform-origin: 88% 12%; animation: ms-swing-l calc(.92s * var(--ms-speed)) ease-in-out infinite; }
.ms-arm-r { transform-origin: 12% 12%; animation: ms-swing-r calc(.92s * var(--ms-speed)) ease-in-out infinite; }
@keyframes ms-swing-l { 0%, 100% { transform: rotate(14deg); }  50% { transform: rotate(-22deg); } }
@keyframes ms-swing-r { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(22deg); } }

.ms-leg-l { transform-origin: 50% 6%; animation: ms-kick-l calc(.92s * var(--ms-speed)) ease-in-out infinite; }
.ms-leg-r { transform-origin: 50% 6%; animation: ms-kick-r calc(.92s * var(--ms-speed)) ease-in-out infinite; }
@keyframes ms-kick-l { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(11deg); } }
@keyframes ms-kick-r { 0%, 100% { transform: rotate(9deg); }  50% { transform: rotate(-11deg); } }

.ms-face {
  transform-box: fill-box;
  transform-origin: 50% 60%;
  animation: ms-tilt calc(1.84s * var(--ms-speed)) ease-in-out infinite;
}
@keyframes ms-tilt { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }

/* --- 5. trainees de vitesse et onde de choc ------------------------------- */
.ms-streak {
  fill: none;
  stroke: var(--ms-brand);
  stroke-linecap: round;
  opacity: 0;
  animation-name: ms-whoosh;
  animation-timing-function: ease-out;
}
@keyframes ms-whoosh {
  0%, 53% { opacity: 0; stroke-dashoffset: 340; }
  57%     { opacity: 1; stroke-dashoffset: 0; }
  64%     { opacity: 0; stroke-dashoffset: -340; }
  100%    { opacity: 0; }
}
.ms-k1 { animation-delay: 0s; }
.ms-k2 { animation-delay: .04s; }
.ms-k3 { animation-delay: .08s; }
.ms-k4 { animation-delay: .02s; }

.ms-boom {
  fill: none;
  stroke: var(--ms-brand);
  opacity: 0;
  animation-name: ms-shock;
  animation-timing-function: ease-out;
}
@keyframes ms-shock {
  0%, 59% { opacity: 0; r: 4; stroke-width: 9; }
  62%     { opacity: .85; r: 34; stroke-width: 5; }
  70%     { opacity: 0; r: 96; stroke-width: .5; }
  100%    { opacity: 0; }
}

/* --- 6. eclairs : uniquement quand la mascotte est au sol ----------------- */
.ms-ambient { animation-name: ms-only-ground; }
@keyframes ms-only-ground { 0%, 55% { opacity: 1; } 56%, 93% { opacity: 0; } 100% { opacity: 1; } }

.ms-bolt {
  fill: var(--ms-brand);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.ms-b1 { animation: ms-zap calc(1.4s * var(--ms-speed)) steps(1, end) infinite; }
.ms-b2 { animation: ms-zap calc(1.15s * var(--ms-speed)) steps(1, end) .35s infinite; }
.ms-b3 { animation: ms-zap calc(1.7s * var(--ms-speed)) steps(1, end) .7s infinite; }
.ms-b4 { animation: ms-zap calc(1.3s * var(--ms-speed)) steps(1, end) 1.05s infinite; }
@keyframes ms-zap {
  0%   { opacity: 0; transform: scale(.7); }
  6%   { opacity: 1; transform: scale(1.08); }
  14%  { opacity: 0; }
  20%  { opacity: .9; }
  27%  { opacity: 0; }
  100% { opacity: 0; }
}

/* --- ombre portee -------------------------------------------------------- */
.ms-shadow {
  fill: var(--white);
  opacity: .16;
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation-name: ms-shad;
  animation-timing-function: ease-out;
}
@keyframes ms-shad {
  0%, 44%  { transform: scale(1); opacity: .16; }
  52%      { transform: scale(1.15); opacity: .22; }
  60%      { transform: scale(.2); opacity: 0; }
  61%, 93% { opacity: 0; }
  100%     { transform: scale(1); opacity: .16; }
}

@media (prefers-reduced-motion: reduce) {
  .mascot * { animation: none !important; }
}

/* ==========================================================================
   BANDEAU BOURSIER (header)
   Colle en haut de la page. Des que le scroller quitte le sommet il se
   replie, ne laissant que le logo $SEXY.
   ========================================================================== */

.site-ticker {
  --stx-bar: #0a0a0a;
  --stx-brand: #fb25b3;
  --stx-brand-ink: #000;
  --stx-up: #fb25b3;                     /* hausse — #22c55e pour du vert classique */
  --stx-down: rgba(255, 255, 255, .42);  /* baisse — #ef4444 pour du rouge classique */
  --stx-muted: rgba(255, 255, 255, .38);
  --stx-rule: rgba(255, 255, 255, .10);
  --stx-speed: 52s;                      /* duree d un tour complet */

  /* plus de plaque de marque : le seul enfant est la bande deroulante */
  display: flex;
  align-items: stretch;
  height: 46px;
  overflow: hidden;
  background: var(--stx-bar);
  border-bottom: 1px solid var(--stx-rule);
  font-family: "Archivo", var(--font-body);
  transition: height .32s ease, opacity .32s ease;

  /* le bandeau ne doit jamais intercepter la molette : le scroller est dessous */
  pointer-events: none;
}

/* etat replie : seul le logo reste */
.site-header.is-scrolled .site-ticker {
  height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.stx-tape {
  position: relative;
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 26px, #000 calc(100% - 40px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 26px, #000 calc(100% - 40px), transparent);
}
.stx-track {
  display: flex;
  height: 100%;
  width: max-content;
  animation: stx-roll var(--stx-speed) linear infinite;
}
/* replie : inutile de faire tourner la boucle */
.site-header.is-scrolled .stx-track { animation-play-state: paused; }
@keyframes stx-roll { to { transform: translateX(-50%); } }

/* --- une ligne cotee ----------------------------------------------------- */
.stx-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 0 1.4rem;
  border-right: 1px solid var(--stx-rule);
  white-space: nowrap;
}
.stx-av {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: var(--white);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.stx-sym { font-size: .88rem; font-weight: 800; letter-spacing: .01em; color: var(--white); }
.stx-nm { margin-right: .15rem; font-size: .75rem; color: var(--stx-muted); }
.stx-spark { flex: none; width: 52px; height: 20px; overflow: visible; }
.stx-spark path { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.stx-px { font-size: .85rem; font-weight: 700; color: var(--white); font-variant-numeric: tabular-nums; }
.stx-chg {
  display: flex;
  align-items: center;
  gap: .22rem;
  font-size: .8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.stx-arrow { font-size: .62rem; line-height: 1; font-style: normal; }

.stx-up .stx-chg { color: var(--stx-up); }
.stx-up .stx-spark path { stroke: var(--stx-up); }
.stx-down .stx-chg { color: var(--stx-down); }
.stx-down .stx-spark path { stroke: var(--stx-down); }

@media (prefers-reduced-motion: reduce) {
  .stx-track { animation: none; }
  .site-ticker { transition: none; }
}


/* --------------------------------------------------------------------------
   PANNEAU 3 — animation « invest / unlock »
   Portee : tout est prefixe iv-, et les classes d'etat sont posees sur la
   racine .investviz, jamais sur <body> comme dans la maquette d'origine.
   -------------------------------------------------------------------------- */
.investviz {
  --iv-card: #141414;
  --iv-brand: #fb25b3;              /* meme rose que .chartviz, .mascot et le logo */
  --iv-brand-ink: #000;
  --iv-muted: rgba(255, 255, 255, .5);
  --iv-rule: rgba(255, 255, 255, .13);

  /* 508px de large => 635px de haut, + 18 de gouttiere + 54 de bouton = 707px,
     soit la meme hauteur que le carre de 710px des autres panneaux */
  width: min(100%, 508px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  font-family: "Archivo", var(--font-body);
}
/* la feuille du site impose aspect-ratio 1/1 + max-width aux <img> d'un
   .panel__media : on le neutralise, les photos de la carte font 100% x 100% */
.investviz img {
  max-width: none;
  aspect-ratio: auto;
}

.iv-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  container-type: inline-size;
}

.iv-back {
  position: absolute;
  inset: 6% 8% 10%;
  border-radius: 4cqw;
  background: var(--iv-card);
  border: 1px solid var(--iv-rule);
  overflow: hidden;
}
.iv-back img { width: 100%; height: 100%; object-fit: cover; filter: blur(9px) grayscale(.6) brightness(.5); }
.iv-b1 { transform: rotate(-7deg) translateY(-2%) scale(.94); }
.iv-b2 { transform: rotate(4deg) translateY(-1%) scale(.97); }

.iv-card {
  position: absolute;
  inset: 4% 6% 8%;
  border-radius: 4cqw;
  overflow: hidden;
  background: var(--iv-card);
  border: 1px solid var(--iv-rule);
  box-shadow: 0 4cqw 8cqw rgba(0, 0, 0, .7);
}
.iv-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  filter: blur(22px) brightness(.55) saturate(.5);
  transform: scale(1.07);
  transition: filter .95s ease-out, transform 1.1s ease-out;
}
.investviz.iv-done .iv-card img { filter: none; transform: none; }

.iv-sweep {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(251, 37, 179, .55) 50%, transparent 58%);
}
.investviz.iv-done .iv-sweep { animation: iv-sweep .95s ease-out; }
@keyframes iv-sweep {
  0% { opacity: 0; transform: translateX(-105%); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translateX(105%); }
}

/* cadenas */
.iv-lock {
  position: absolute;
  top: 5.5%;
  right: 7%;
  width: 15%;
  aspect-ratio: 1;
  z-index: 4;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(6px);
  transition: background .45s ease;
}
.investviz.iv-done .iv-lock { background: var(--iv-brand); }
.iv-lock svg { width: 52%; }
.iv-lockbody { fill: var(--white); transition: fill .45s ease; }
.iv-shackle {
  fill: none;
  stroke: var(--white);
  stroke-width: 5.5;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: 88% 100%;
  transition: transform .5s cubic-bezier(.3, 1.7, .4, 1), stroke .45s ease;
}
.investviz.iv-done .iv-lockbody { fill: var(--iv-brand-ink); }
.investviz.iv-done .iv-shackle { stroke: var(--iv-brand-ink); transform: rotate(-34deg) translateY(-8%); }

/* bandeau bas de carte — planchers en px pour rester lisible sur mobile */
.iv-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 5cqw 5cqw 4.5cqw;
  background: linear-gradient(to top, rgba(0, 0, 0, .95) 55%, transparent);
}
.iv-tag { position: relative; height: max(3.8cqw, 18px); margin-bottom: 1.6cqw; }
.iv-tag span {
  position: absolute;
  left: 0;
  font-size: max(2.7cqw, 13px);
  font-weight: 800;
  transition: opacity .4s ease;
}
.iv-tlock { color: var(--white); }
.iv-topen { color: var(--iv-brand); opacity: 0; }
.investviz.iv-done .iv-tlock { opacity: 0; }
.investviz.iv-done .iv-topen { opacity: 1; }
.iv-sub { font-size: max(2cqw, 10px); color: var(--iv-muted); line-height: 1.45; }
.iv-meter {
  height: max(1.1cqw, 5px);
  border-radius: 1cqw;
  background: rgba(255, 255, 255, .14);
  margin-top: 2.4cqw;
  overflow: hidden;
}
.iv-meter i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--iv-brand);
  border-radius: 1cqw;
  transition: width 1s cubic-bezier(.3, 1, .4, 1);
}
.investviz.iv-done .iv-meter i { width: 100%; }

/* jeton projete vers la carte */
.iv-token {
  position: absolute;
  left: 50%;
  bottom: -16%;
  width: 18%;
  aspect-ratio: 1;
  z-index: 5;
  margin-left: -9%;
  opacity: 0;
  pointer-events: none;
}
.iv-token svg { width: 100%; display: block; filter: drop-shadow(0 1cqw 2cqw rgba(251, 37, 179, .55)); }
.investviz.iv-launch .iv-token { animation: iv-toss 1.1s cubic-bezier(.3, .85, .3, 1) forwards; }
@keyframes iv-toss {
  0% { opacity: 0; transform: translateY(0) scale(.5) rotate(-25deg); }
  22% { opacity: 1; transform: translateY(-130%) scale(1) rotate(-6deg); }
  62% { opacity: 1; transform: translateY(-205%) scale(1) rotate(5deg); }
  100% { opacity: 0; transform: translateY(-205%) scale(2) rotate(5deg); }
}

/* faux bouton, purement decoratif : la vraie CTA du panneau est le .btn a cote.
   Rendu en <div>, pas en <button>, pour ne pas ajouter un controle focusable
   dans un bloc aria-hidden. */
.iv-cta {
  position: relative;
  height: 54px;
  width: 100%;
  border-radius: 999px;
  background: var(--iv-brand);
  color: var(--iv-brand-ink);
  font-size: 16px;
  font-weight: 800;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: width .38s cubic-bezier(.6, 0, .3, 1), background .35s ease;
}
.iv-label { transition: opacity .2s ease; }
.iv-ring,
.iv-check { position: absolute; width: 26px; height: 26px; opacity: 0; transition: opacity .25s ease; }
.iv-ring circle { fill: none; stroke: var(--iv-brand-ink); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 38 62; }
.iv-check path {
  fill: none;
  stroke: var(--iv-brand-ink);
  stroke-width: 3.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 34;
  stroke-dashoffset: 34;
}

/* L'ordre busy -> ok -> done est charge de sens : .iv-done rouvre le bouton et
   doit donc rester APRES .iv-ok, les deux etant a specificite egale (0,2,0). */
.investviz.iv-busy .iv-cta { width: 54px; }
.investviz.iv-busy .iv-label { opacity: 0; }
.investviz.iv-busy .iv-ring { opacity: 1; animation: iv-spin .75s linear infinite; }
@keyframes iv-spin { to { transform: rotate(360deg); } }

.investviz.iv-ok .iv-cta { width: 54px; }
.investviz.iv-ok .iv-label { opacity: 0; }
.investviz.iv-ok .iv-ring { opacity: 0; animation: none; }
.investviz.iv-ok .iv-check { opacity: 1; }
.investviz.iv-ok .iv-check path { animation: iv-draw .38s cubic-bezier(.5, 0, .3, 1) forwards; }
@keyframes iv-draw { to { stroke-dashoffset: 0; } }

.investviz.iv-done .iv-cta { width: 100%; background: #1a1a1a; color: var(--iv-brand); }
.investviz.iv-done .iv-label { opacity: 1; }
.investviz.iv-done .iv-check { opacity: 0; }

/* la maquette coupait toute animation du document : on la borne a ce bloc */
@media (prefers-reduced-motion: reduce) {
  .investviz,
  .investviz * {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
  .site-header__inner { padding-left: 24px; }
  .site-header__cta { font-size: 11px; padding: 8px 12px; }

  /* la carte ne doit pas manger tout l'ecran une fois les panneaux empiles :
     on la borne par la hauteur de vue (46dvh de haut => 46 * .8 de large) */
  .investviz { width: min(100%, calc(46dvh * .8)); gap: 14px; }
  .iv-cta { height: 46px; font-size: 14px; }

  /* bandeau plus compact, sans le nom complet de la creatrice */
  .site-ticker { height: 40px; }
  .stx-item { gap: .45rem; padding: 0 1rem; }
  .stx-nm { display: none; }

  .panel { padding: 80px 20px 40px; }
  .panel__inner { grid-template-columns: 1fr; gap: 24px; }
  .panel--media-right .panel__media,
  .panel--media-right .panel__body { order: initial; }
  .panel__body { padding: 0; }
  .panel__media video,
  .panel__media img { max-width: 100%; }

  .app-page { height: auto; min-height: 100dvh; overflow: visible; }
  .app-topbar { position: relative; top: 0; left: 0; right: 0; padding: 16px 20px 0; }
  .app-topbar__logo img { width: 130px; }
  .marquees { position: relative; top: 0; margin: 28px 0; }
  .marquee--xl, .marquee--accent { height: auto; }
  .app-phone {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    margin: 0 auto;
    height: auto;
    width: min(292px, 70vw);
  }
  .app-nav { position: relative; left: 0; bottom: 0; transform: none; width: 100%; justify-content: center; margin: 28px 0 0; }
  .app-nav__item { width: 72px; height: 72px; font-size: 32px; }
  .app-social { position: relative; left: 0; bottom: 0; justify-content: center; margin: 28px 0 12px; }
  .app-domain { position: relative; right: 0; bottom: 0; justify-content: center; margin-bottom: 28px; }
}
