/* ============================================================
   KARDZ — story.css
   Le plan-séquence : une carte Mew (un seul nœud DOM, #mew, en
   position:fixed) voyage à travers des "actes". Chaque acte est
   une section haute de 2-3 écrans dont le contenu est sticky ;
   assets/js/story.js scrub la progression --p de chaque acte et
   déplace #mew de .mew-slot en .mew-slot (waypoints invisibles).
   Tout ce qui peut être piloté par --p en pur CSS l'est (calc +
   clamp) ; le JS ne fait que mesurer et poser des variables.
   ============================================================ */

body { overflow-x: clip; }

/* ---------- en-tête de section générique (FAQ...) ----------
   Utilisé par .faq (class="story-head is-center") : cette règle vivait
   avant dans assets/css/scenes.css, un fichier qui n'est plus chargé par
   index.html — la classe se retrouvait donc sans aucun style, d'où le
   titre plaqué à gauche, plein cadre, au lieu d'une colonne centrée. */
.story-head { max-width: 640px; }
.story-head.is-center { max-width: 620px; margin: 0 auto; text-align: center; }
.story-head h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; margin: 16px 0 14px; }
.story-head p { color: var(--grey-2); font-size: clamp(15px, 1.1vw, 17.5px); font-weight: 500; line-height: 1.6; }

/* ---------- primitive carte (ratio réel 600/825) ---------- */
.pcard {
  aspect-ratio: 600 / 825;
  border-radius: 4.7% / 3.4%;
  overflow: hidden;
  background: #101016;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.pcard img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Mew : la carte-personnage ---------- */
#mew {
  position: fixed;
  top: 0; left: 0;
  width: 300px;
  aspect-ratio: 600 / 825;
  z-index: 24;
  pointer-events: none;
  transform-origin: 50% 50%;
  will-change: transform, filter, opacity;
  opacity: 0; /* story.js la révèle une fois calée sur son premier slot */
}
.mew-inner {
  position: absolute; inset: 0;
  border-radius: 4.7% / 3.4%;
  overflow: hidden;
  background: #17121c;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .05);
}
.mew-inner > img { width: 100%; height: 100%; object-fit: cover; }
/* reflet : une nappe spéculaire qui suit la souris (--gx/--gy) ;
   l'intensité (--holo) est un attribut du waypoint courant */
.mew-glare {
  position: absolute; inset: -20%;
  opacity: var(--holo, .2);
  mix-blend-mode: screen;
  background:
    radial-gradient(48% 42% at var(--gx, 60%) var(--gy, 30%), rgba(255, 255, 255, .5), transparent 62%),
    linear-gradient(115deg, transparent 32%, rgba(255, 128, 198, .22) 46%, rgba(139, 92, 246, .2) 55%, transparent 70%);
}
/* balayage lumineux one-shot (acte Découvrir) */
.mew-sheen::after {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.34) 48%, rgba(255,128,198,.28) 54%, transparent 68%);
  transform: translateX(-130%);
  animation: mewSheen 1.4s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes mewSheen { to { transform: translateX(130%); } }

/* ---------- squelette d'acte ---------- */
.act { position: relative; }
.act-stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  perspective: 1100px;
  perspective-origin: 50% 44%;
}
.act-hero    { height: 240vh; }
.act-focus   { height: 210vh; }
.act-deal    { height: 280vh; }
.act-binder  { height: 270vh; }
.act-wallet  { height: 280vh; }
.act-vault   { height: 300vh; }
.act-langs   { height: 240vh; }
.act-feed    { height: 300vh; }
.act-final   { height: 220vh; }

/* waypoint : boîte invisible, sa géométrie EST la cible de Mew */
.mew-slot {
  aspect-ratio: 600 / 825;
  pointer-events: none;
  visibility: hidden;
}
.mew-slot .mew-fallback { display: none; }

/* révélations séquencées dans un acte : .is-on posé par story.js
   quand --p franchit data-at (retiré si on re-scrolle en arrière) */
[data-step] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease-soft), transform .7s var(--ease-soft);
}
[data-step].is-on { opacity: 1; transform: none; }
[data-step="pop"] { transform: scale(.94) translateY(14px); }
[data-step="pop"].is-on { transform: none; }
[data-step="left"]  { transform: translateX(-34px); }
[data-step="right"] { transform: translateX(34px); }
[data-step="left"].is-on, [data-step="right"].is-on { transform: none; }

/* grande réplique posée sur la scène */
.act-line {
  position: absolute; left: 50%; z-index: 8;
  width: min(92vw, 900px);
  transform: translateX(-50%);
  text-align: center;
}

/* ---------- stage en colonne : la scène est UNE composition ----------
   Titre, visuel et légende forment un seul groupe, à distance fixe,
   centré verticalement dans l'écran. Le padding haut garantit que
   rien ne passe sous la navbar (100px max), le `safe center` que
   rien ne déborde sur les petits écrans. */
.stage-col {
  display: flex; flex-direction: column;
  align-items: center;
  justify-content: safe center;
  gap: clamp(24px, 4.5vh, 54px);
  padding: 118px 0 30px;
}
.stage-col .line-a,
.stage-col .line-b {
  position: relative; /* pas static : le z-index 8 doit rester effectif */
  left: auto; transform: none;
  margin: 0; flex-shrink: 0;
}
.act-line h2 {
  font-size: clamp(30px, 4.6vw, 62px);
  line-height: 1.06;
  color: var(--white);
}
.act-line h2 em { font-style: normal; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.act-line p { margin-top: 14px; font-size: clamp(15px, 1.5vw, 19px); color: var(--grey-2); }

/* ============================================================
   ACTE 0 — HERO / le nuage
   ============================================================ */
.act-hero .act-stage { perspective: 1300px; }

.hero-nebula {
  position: absolute; inset: -12%;
  background:
    radial-gradient(46% 36% at 30% 26%, rgba(255, 47, 163, .1), transparent 62%),
    radial-gradient(42% 38% at 74% 60%, rgba(139, 92, 246, .1), transparent 64%),
    radial-gradient(30% 26% at 56% 18%, rgba(255, 15, 134, .06), transparent 60%);
  animation: nebulaDrift 26s ease-in-out infinite alternate;
}
@keyframes nebulaDrift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to   { transform: translate3d(1.5%, 1.5%, 0) scale(1.05); }
}
.hero-grain {
  position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.7) 1px, transparent 1px);
  background-size: 3px 3px;
}

/* nuage de cartes : positions posées via --cx/--cy en %, profondeur
   --cz ; story.js compose dérive + rotation + fuite dans transform */
.cloud { position: absolute; inset: 0; transform-style: preserve-3d; }
.cloud-card {
  position: absolute;
  left: var(--cx); top: var(--cy);
  width: var(--cw, clamp(110px, 6.719vw, 172px));
  margin-left: calc(var(--cw, clamp(110px, 6.719vw, 172px)) / -2);
  filter: blur(var(--cb, 0px)) brightness(.92);
  will-change: transform, opacity, filter;
}
.cloud-slot {
  position: absolute;
  left: var(--cx); top: var(--cy);
  width: clamp(150px, 8.75vw, 224px);
  margin-left: calc(clamp(150px, 8.75vw, 224px) / -2);
  will-change: transform;
}

.hero-copy {
  position: absolute; left: 50%; top: 50%; z-index: 10;
  width: min(94vw, 980px);
  transform: translate(-50%, -50%) translateY(calc(var(--p, 0) * -70px));
  text-align: center;
  opacity: calc(1 - clamp(0, calc(var(--p, 0) / .38), 1));
}
.hero-copy.is-gone { pointer-events: none; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(12px);
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  color: var(--grey-1);
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px rgba(66, 240, 163, .9);
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot { 50% { opacity: .45; } }

.hero-wordmark { line-height: 0; }
/* Le fichier logo (1080×1080) ne contient le vrai motif visible que sur une
   bande fine et centrée (11,7–88,1% en largeur, 40–60% en hauteur) — le
   reste est du remplissage transparent. Sans recadrage, une hauteur de
   boîte de 150px n'affichait qu'un motif visible d'environ 30px : on
   agrandit donc l'image à l'intérieur d'une fenêtre recadrée (overflow
   hidden) plutôt que l'image entière, pour que la taille demandée
   corresponde à la taille réellement vue. */
.hero-wordmark-crop {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 26px auto 0;
  height: clamp(64.8px, 10.8vw, 158.4px);
  aspect-ratio: 826 / 216;
}
.hero-wordmark-crop img {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 500%;
  width: auto;
  max-width: none;
  transform: translate(-50%, -50%);
}
.hero-tagline {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(19px, 2.6vw, 30px);
  color: var(--grey-1);
}
.hero-tagline em { font-style: normal; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-platforms {
  margin-top: 12px;
  font-size: clamp(12.5px, 1.3vw, 15px);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--grey-3); font-weight: 600;
}
.hero-platforms b { color: var(--grey-2); font-weight: 600; }

.hero-ctas {
  margin-top: 30px;
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
}
.store-badge { position: relative; display: inline-flex; border-radius: 12px; }
.store-badge img { height: 48px; width: auto; display: block; }
.store-badge.is-soon { opacity: .5; filter: grayscale(.55); pointer-events: none; }
.store-badge.is-soon::after {
  content: 'Bientôt';
  position: absolute; top: -9px; right: -8px;
  padding: 2px 8px; border-radius: 999px;
  background: var(--bg-raise); border: 1px solid var(--line-strong);
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--pink-light);
}

.hero-scroll-cue {
  position: absolute; left: 50%; bottom: 30px; z-index: 10;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--grey-3);
  opacity: calc(.85 - clamp(0, calc(var(--p, 0) / .1), 1));
}
.hero-scroll-cue i {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--pink), transparent);
  animation: cueDrop 2s var(--ease-in-out) infinite;
}
@keyframes cueDrop { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 56% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ============================================================
   ACTE 1 — DÉCOUVRIR
   ============================================================ */
.focus-halo {
  position: absolute; left: 50%; top: 50%;
  width: min(72vw, 680px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 47, 163, .13), rgba(139, 92, 246, .07) 45%, transparent 68%);
  animation: haloBreath 5.5s ease-in-out infinite;
  opacity: clamp(0, calc(var(--p, 0) * 3), 1);
}
@keyframes haloBreath { 50% { transform: translate(-50%, -50%) scale(1.09); } }
/* la carte occupe l'écran : c'est ELLE le sujet de la scène */
.focus-wrap { position: relative; }
.focus-slot { width: clamp(240px, min(23.58vw, 29.86vh), 430px); }
/* fine ligne de scan : amorce de DealCheck, calée sur la carte */
.focus-scan {
  position: absolute; left: 50%; top: 4%;
  width: 112%; height: 2px;
  transform: translateX(-50%);
  visibility: visible;
  background: linear-gradient(90deg, transparent, var(--pink) 30%, var(--pink-light) 50%, var(--pink) 70%, transparent);
  box-shadow: 0 0 18px rgba(255, 47, 163, .8);
  transition: opacity .5s;
}
.focus-scan.is-on { animation: scanDrop 2.6s var(--ease-in-out) infinite; }
@keyframes scanDrop { 0% { top: 3%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 97%; opacity: 0; } }

/* ============================================================
   ACTE 2 — DEALCHECK
   ============================================================ */
.deal-panel {
  position: relative; z-index: 6;
  width: min(92vw, 820px);
  padding: clamp(20px, 3vw, 36px);
  border-radius: var(--radius-l);
  display: grid;
  grid-template-columns: clamp(150px, 8.75vw, 224px) 1fr;
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
}
.deal-panel .panel-title {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--grey-2);
}
.deal-panel .panel-title .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px rgba(255,47,163,.8); }
.deal-slot { width: 100%; }
.deal-rows { display: grid; gap: 12px; }
.deal-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 18px; border-radius: var(--radius-s);
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line-hair);
  font-size: 15px; color: var(--grey-2);
}
.deal-row b { font-family: var(--font-display); font-size: 17px; color: var(--white); font-variant-numeric: tabular-nums; }
.deal-row.is-market b { color: var(--grey-1); }
.deal-gauge { position: relative; height: 6px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.deal-gauge i {
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--mint));
  transform-origin: left;
  transform: scaleX(clamp(0, calc((var(--p, 0) - .5) / .16), 1));
}
.deal-gap { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--grey-2); }
.deal-gap b { color: var(--mint); font-family: var(--font-display); font-size: 18px; font-variant-numeric: tabular-nums; }
.deal-score { display: flex; align-items: center; gap: 16px; }
.deal-ring-wrap { position: relative; width: 76px; height: 76px; flex-shrink: 0; }
.deal-ring-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.deal-ring-wrap .bg { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 7; }
.deal-ring-wrap .fg {
  fill: none; stroke: var(--pink); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - clamp(0, calc((var(--p, 0) - .64) / .16), 1) * 92);
}
.deal-ring-num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--white);
}
.deal-score-label { font-size: 13px; color: var(--grey-3); letter-spacing: .08em; text-transform: uppercase; }
.deal-verdict {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start;
  padding: 12px 22px; border-radius: 999px;
  background: rgba(66, 240, 163, .1);
  border: 1px solid rgba(66, 240, 163, .35);
  color: var(--mint); font-family: var(--font-display); font-weight: 700; font-size: 16px;
  box-shadow: 0 0 40px rgba(66, 240, 163, .12);
}

/* ============================================================
   ACTE 3 — LE CLASSEUR
   ============================================================ */
.act-binder .act-stage { perspective: 1500px; }
.binder {
  position: relative; z-index: 6;
  width: min(76vw, 500px);
  padding: clamp(14px, 2vw, 24px);
  border-radius: var(--radius-l);
  background: linear-gradient(160deg, #131117, #0c0b10);
  border: 1px solid var(--line);
  box-shadow: 0 60px 120px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .06);
  /* un objet posé sur une table : le classeur garde une vraie inclinaison
     au repos (26°), puis bascule et fuit quand la caméra décolle */
  transform:
    rotateX(calc(56deg - clamp(0, calc(var(--p, 0) / .42), 1) * 30deg - clamp(0, calc((var(--p, 0) - .84) / .16), 1) * 62deg))
    translateZ(calc(clamp(0, calc((var(--p, 0) - .84) / .16), 1) * -480px));
  opacity: calc(1 - clamp(0, calc((var(--p, 0) - .86) / .13), 1));
  will-change: transform, opacity;
}
.binder-rings { position: absolute; left: 50%; top: -7px; transform: translateX(-50%); display: flex; gap: 46px; }
.binder-rings i { width: 12px; height: 14px; border-radius: 6px; background: linear-gradient(180deg, #3a3a44, #1c1c24); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.binder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 1.4vw, 14px); }
.pocket {
  position: relative;
  aspect-ratio: 600 / 825;
  border-radius: 8px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line-hair);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.pocket img { width: 100%; height: 100%; object-fit: cover; opacity: .52; }
.pocket-empty::after {
  content: ''; position: absolute; inset: 8%;
  border: 1.5px dashed rgba(255, 128, 198, .3);
  border-radius: 6px;
  opacity: calc(1 - clamp(0, calc((var(--p, 0) - .5) / .1), 1));
}
.pocket-slot { position: absolute; inset: 0; width: 100%; }
/* liseré rose quand Mew se range */
.pocket-glow { position: absolute; inset: 0; border-radius: 8px; pointer-events: none; box-shadow: 0 0 0 1.5px var(--pink), 0 0 26px rgba(255, 47, 163, .5); opacity: 0; transition: opacity .6s; }
.pocket-glow.is-on { opacity: 1; }
.binder-toast {
  position: absolute; left: 50%; top: -54px; transform: translateX(-50%) translateY(10px);
  padding: 9px 18px; border-radius: 999px;
  background: rgba(255, 47, 163, .14);
  border: 1px solid rgba(255, 47, 163, .4);
  color: var(--pink-light); font-family: var(--font-display); font-weight: 700; font-size: 14px;
  white-space: nowrap;
}
.binder-toast.is-on { transform: translateX(-50%) translateY(0); }
.binder-count {
  margin-top: 12px; text-align: right;
  font-size: 13.5px; color: var(--grey-2);
}
.binder-count b { color: var(--white); font-family: var(--font-display); font-variant-numeric: tabular-nums; }

/* ============================================================
   ACTE 4 — LE WALLET
   ============================================================ */
.wallet-panel {
  position: relative; z-index: 6;
  width: min(92vw, 760px);
  padding: clamp(22px, 3vw, 38px);
  border-radius: var(--radius-l);
  display: grid; gap: 20px;
}
.wallet-kicker { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--grey-3); font-weight: 700; }
.wallet-amount {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 2.578vw, 66px); letter-spacing: -.02em;
  color: var(--white); font-variant-numeric: tabular-nums;
  line-height: 1;
}
.wallet-amount.is-flash { animation: amountFlash 1s var(--ease-out); }
@keyframes amountFlash {
  0% { text-shadow: none; }
  25% { text-shadow: 0 0 34px rgba(255, 47, 163, .85); color: var(--pink-light); }
  100% { text-shadow: none; }
}
.wallet-delta { font-size: 15px; color: var(--mint); font-weight: 600; }
.wallet-row {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px; border-radius: var(--radius-s);
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line-hair);
}
.wallet-row-slot { width: 44px; flex-shrink: 0; }
.wallet-row-name { font-weight: 600; font-size: 14.5px; color: var(--grey-1); }
.wallet-row-set { font-size: 12.5px; color: var(--grey-3); }
.wallet-row-val { margin-left: auto; text-align: right; }
.wallet-row-val b { display: block; font-family: var(--font-display); color: var(--white); font-size: 15px; font-variant-numeric: tabular-nums; }
.wallet-row-val span { font-size: 12.5px; color: var(--mint); }
.wallet-chart { position: relative; height: clamp(90px, 5.078vw, 130px); }
.wallet-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wallet-chart .line {
  fill: none; stroke: var(--pink); stroke-width: 2.4; stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - clamp(0, calc((var(--p, 0) - .48) / .22), 1));
}
.wallet-chart .fill { opacity: clamp(0, calc((var(--p, 0) - .62) / .12), 1); }
.wallet-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wallet-tile {
  padding: 16px; border-radius: var(--radius-s);
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line-hair);
}
.wallet-tile b { display: block; font-family: var(--font-display); font-size: clamp(16px, 2vw, 21px); color: var(--white); font-variant-numeric: tabular-nums; }
.wallet-tile span { font-size: 12px; color: var(--grey-3); letter-spacing: .06em; text-transform: uppercase; }
.wallet-tile.is-perf b { color: var(--mint); }

/* ============================================================
   ACTE 5 — LE COFFRE SCELLÉ
   ============================================================ */
.act-vault .act-stage { perspective: 1400px; }
.vault-item {
  position: absolute;
  z-index: 3; /* toujours au-dessus du cadre de verre, même une fois rangé */
  left: var(--vx); top: var(--vy);
  width: var(--vw, clamp(130px, 9.375vw, 240px));
  margin-left: calc(var(--vw, clamp(130px, 9.375vw, 240px)) / -2);
  will-change: transform, filter;
  filter: drop-shadow(0 34px 50px rgba(0, 0, 0, .55));
}
.vault-item img { width: 100%; height: auto; }
.vault-frame {
  position: relative; z-index: 2;
  width: min(94vw, 1280px);
  border-radius: var(--radius-l);
  padding: clamp(16px, 2.2vw, 32px);
  opacity: clamp(0, calc((var(--p, 0) - .5) / .18), 1);
}
.vault-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(8px, 1.4vw, 16px); }
.vault-cell {
  position: relative;
  border-radius: var(--radius-s);
  border: 1px solid var(--line-hair);
  background: rgba(255, 255, 255, .028);
  padding: clamp(10px, 1.4vw, 18px);
  display: flex; flex-direction: column; gap: 9px;
}
.vault-cell-art { aspect-ratio: 1; }
.vault-cell b { font-size: clamp(12px, 1.1vw, 15px); color: var(--grey-1); font-weight: 600; }
.vault-cell span { font-size: clamp(11px, 1vw, 14px); color: var(--grey-3); }
.vault-cell .price { color: var(--pink-light); font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ============================================================
   ACTE 5 bis — LES LANGUES
   La carte FR (#mew, fixe, z 24) arrive au centre ; ses jumelles
   EN et JP (contenu du stage, donc DERRIÈRE elle) glissent de
   sous la carte vers les côtés, pilotées par --p en pur CSS.
   ============================================================ */
.langs-slot { width: clamp(180px, min(14.67vw, 18.33vh), 264px); }
/* l'éventail s'ancre au centre du wrap (= la boîte de la carte FR) */
.langs-wrap { position: relative; }
.lang-fan { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.lang-card {
  --fan: clamp(0, calc((var(--p, 0) - .28) / .26), 1);
  --fan-dist: 108%;
  position: absolute; left: 0; top: 0;
  width: clamp(180px, min(14.67vw, 18.33vh), 264px);
  filter: brightness(.94);
  will-change: transform;
}
.lang-card--en {
  transform: translate(calc(-50% - var(--fan) * var(--fan-dist)), -50%)
             rotate(calc(var(--fan) * -7deg)) scale(calc(.94 + var(--fan) * .02));
}
.lang-card--jp {
  transform: translate(calc(-50% + var(--fan) * var(--fan-dist)), -50%)
             rotate(calc(var(--fan) * 7deg)) scale(calc(.94 + var(--fan) * .02));
}
.lang-tags { display: flex; gap: 14px; z-index: 8; }
.lang-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(12px);
  font-size: 13px; color: var(--grey-2);
}
.lang-tag b {
  font-family: var(--font-display); font-size: 11.5px; letter-spacing: .08em;
  color: var(--pink-light);
}

/* ============================================================
   ACTE 6 — LE RÉSEAU (feed façon X + amis / messages / groupes)
   ============================================================ */
.feed-wrap {
  position: relative; z-index: 6;
  display: grid;
  grid-template-columns: minmax(0, 460px) 280px;
  gap: 20px;
  align-items: start;
  width: min(94vw, 780px);
}
.feed-col { display: grid; gap: 12px; }
.feed-compose {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-m);
}
.compose-hint { font-size: 14px; color: var(--grey-3); flex: 1; }
.compose-btn {
  padding: 8px 18px; border-radius: 999px;
  background: var(--grad-brand);
  font-family: var(--font-display); font-weight: 700; font-size: 13px; color: #fff;
}
.feed-post {
  position: relative;
  border-radius: var(--radius-m);
  padding: 16px;
  display: grid; gap: 12px;
}
/* les posts secondaires restent en retrait, même une fois révélés */
.feed-post.is-dim.is-on { opacity: .58; }
.feed-head { display: flex; align-items: center; gap: 12px; }
.feed-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .1);
  position: relative; overflow: hidden;
}
.feed-avatar::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #2c2534, #17121e); }
.feed-user b { display: block; font-size: 14.5px; color: var(--white); }
.feed-user span { font-size: 12.5px; color: var(--grey-3); }
.feed-caption { font-size: 14.5px; color: var(--grey-1); }
.feed-media {
  position: relative;
  border-radius: var(--radius-s);
  background: radial-gradient(80% 80% at 50% 40%, #1a1420, #0d0b12);
  border: 1px solid var(--line-hair);
  display: grid; place-items: center;
  padding: 22px 0;
}
.feed-media-slot { width: clamp(130px, 6.5625vw, 168px); }
.feed-actions { display: flex; align-items: center; gap: 22px; font-size: 13.5px; color: var(--grey-2); }
.feed-actions .act-like { display: inline-flex; align-items: center; gap: 7px; }
.feed-actions .heart { color: var(--pink); display: inline-block; }
.feed-actions .heart.is-on { animation: heartPop .6s var(--ease-out); }
@keyframes heartPop { 30% { transform: scale(1.45); } }
/* acte dense : le titre reste sur une ligne, au-dessus du réseau */
.act-feed .line-a h2 { font-size: clamp(24px, 3.2vw, 42px); }

/* avatars secondaires */
.feed-avatar.sm { width: 34px; height: 34px; flex-shrink: 0; }
.feed-avatar.is-b { background: linear-gradient(130deg, var(--blue), var(--violet)); }
.feed-avatar.is-c { background: linear-gradient(130deg, var(--mint), var(--cyan)); }

/* rail : amis / messages / groupes */
.feed-rail { display: grid; gap: 12px; align-content: start; }
.rail-card { border-radius: var(--radius-m); padding: 14px; display: grid; gap: 10px; }
.rail-title {
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--grey-3);
}
.rail-row { display: flex; align-items: center; gap: 10px; }
.rail-name { font-size: 13.5px; font-weight: 600; color: var(--grey-1); flex: 1; min-width: 0; }
.rail-sub { display: block; font-size: 11.5px; font-weight: 400; color: var(--grey-3); }
.rail-btn {
  padding: 6px 13px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line-strong);
  font-family: var(--font-display); font-weight: 600; font-size: 12px; color: var(--grey-1);
}
.rail-btn.is-ok { border-color: rgba(66, 240, 163, .45); color: var(--mint); background: rgba(66, 240, 163, .08); }
/* superposition « + Ajouter » → « ✓ Ajouté » sans décalage de layout */
.swap { display: inline-grid; }
.swap > * { grid-area: 1 / 1; justify-self: end; }
.rail-create {
  padding: 9px; border-radius: var(--radius-s); text-align: center;
  border: 1.5px dashed rgba(255, 128, 198, .35);
  font-family: var(--font-display); font-weight: 600; font-size: 12.5px; color: var(--pink-light);
}
/* bulles de conversation */
.bubble {
  max-width: 88%; padding: 8px 13px; border-radius: 15px;
  font-size: 13px; line-height: 1.35; color: var(--grey-1);
}
.bubble.in { background: rgba(255, 255, 255, .07); border-bottom-left-radius: 5px; }
.bubble.out {
  background: rgba(255, 47, 163, .16);
  border: 1px solid rgba(255, 47, 163, .22);
  border-bottom-right-radius: 5px;
  margin-left: auto;
}

/* écrans peu hauts : on sacrifie les posts décoratifs, jamais le récit */
@media (max-height: 780px) {
  .feed-post.is-dim { display: none; }
  .feed-compose { display: none; }
}

/* ============================================================
   Écrans peu hauts (laptops 768p, fenêtres réduites) : chaque
   scène se compacte pour tenir SOUS la navbar et AU-DESSUS du
   bord bas — on réduit, on ne laisse jamais déborder.
   ============================================================ */
@media (max-height: 820px) {
  .stage-col { padding: 90px 0 16px; gap: clamp(14px, 2.6vh, 30px); }

  .focus-slot { width: clamp(220px, min(28vw, 34vh), 380px); }

  .binder { width: min(58vw, 372px); }
  /* plus incliné = moins haut à l'écran, et l'effet "posé sur la
     table" y gagne */
  .binder {
    transform:
      rotateX(calc(60deg - clamp(0, calc(var(--p, 0) / .42), 1) * 26deg - clamp(0, calc((var(--p, 0) - .84) / .16), 1) * 62deg))
      translateZ(calc(clamp(0, calc((var(--p, 0) - .84) / .16), 1) * -480px));
  }
  .act-binder .line-b { display: none; }

  .wallet-panel { gap: 13px; padding: 20px 26px; }
  .wallet-amount { font-size: clamp(34px, 5vw, 50px); }
  .wallet-chart { height: 78px; }
}

/* ============================================================
   ACTE 7 — FINAL
   ============================================================ */
.act-final .act-stage { display: grid; place-items: center; }
.final-nebula {
  position: absolute; inset: -10%;
  background:
    radial-gradient(40% 34% at 50% 44%, rgba(255, 47, 163, .12), transparent 64%),
    radial-gradient(36% 30% at 32% 66%, rgba(139, 92, 246, .09), transparent 60%);
}
.final-float {
  position: absolute;
  left: var(--fx); top: var(--fy);
  width: var(--fw);
  margin-left: calc(var(--fw) / -2);
  filter: blur(var(--fb, 0px)) brightness(.8);
  opacity: .8;
  will-change: transform;
}
.final-float img { width: 100%; height: auto; }
.final-slot { position: absolute; left: 82%; top: 25%; width: clamp(120px, 7.1875vw, 184px); margin-left: calc(clamp(120px, 7.1875vw, 184px) / -2); }
.final-copy { position: relative; z-index: 10; text-align: center; width: min(94vw, 900px); }
.final-copy .logo { height: clamp(60px, 4.21875vw, 108px); width: auto; margin: 0 auto 26px; filter: drop-shadow(0 0 44px rgba(255, 47, 163, .4)); }
.final-copy h2 { font-size: clamp(34px, 5.6vw, 72px); line-height: 1.04; color: var(--white); }
.final-copy h2 em { font-style: normal; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.final-copy > p { margin-top: 16px; font-size: clamp(15px, 1.6vw, 19px); color: var(--grey-2); }
.final-ctas { margin-top: 32px; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.final-stores {
  margin-top: 28px;
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
}
/* badge « Web » dessiné dans le même gabarit que les badges officiels
   (48px, noir, liseré gris, icône + deux lignes) */
.store-badge--web {
  height: 48px; padding: 0 15px 0 12px; gap: 9px;
  align-items: center;
  background: #000; border: 1px solid #a6a6a6; border-radius: 8px;
  color: #fff;
  transition: transform .25s var(--ease-soft), border-color .25s;
}
.store-badge--web:hover { transform: translateY(-2px); border-color: #fff; }
.store-badge--web svg { width: 26px; height: 26px; flex-shrink: 0; color: #fff; }
.store-badge--web .t { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
/* Plancher de lisibilité : sous 11px un libellé devient pénible à lire sur
   téléphone, et les petits écrans sont justement ceux qui zooment le moins. */
.store-badge--web .t small { font-size: 12px; letter-spacing: .02em; color: #e6e6e6; }
.store-badge--web .t b { font-family: var(--font-body); font-size: 17px; font-weight: 600; letter-spacing: -.01em; }

/* ============================================================
   Dégradations — mobile
   ============================================================ */
@media (max-width: 900px) {
  .act-hero { height: 200vh; }
  .act-focus { height: 180vh; }
  .act-deal { height: 240vh; }
  .act-binder { height: 230vh; }
  .act-wallet { height: 240vh; }
  .act-vault { height: 250vh; }
  .act-langs { height: 190vh; }
  .act-feed { height: 240vh; }
  .act-final { height: 190vh; }

  .stage-col { padding: 82px 0 22px; gap: clamp(18px, 3.2vh, 36px); }
  .binder { width: min(88vw, 500px); }
  .focus-slot { width: clamp(200px, min(60vw, 34vh), 300px); }

  .langs-slot, .lang-card { width: clamp(118px, 33vw, 164px); }
  .lang-card { --fan-dist: 98%; }
  .lang-tags { gap: 8px; }
  .lang-tag { padding: 6px 11px; font-size: 11.5px; }

  .feed-wrap { grid-template-columns: minmax(0, 460px); }
  .feed-rail { display: none; }
  .feed-post.is-dim { display: none; }

  .cloud-card.is-deep { display: none; }
  .cloud-card { filter: none; }

  .deal-panel { grid-template-columns: 1fr; justify-items: center; }
  .deal-slot { width: clamp(140px, 34vw, 190px); }
  .deal-rows { width: 100%; }

  .vault-item.is-extra { display: none; }
  .vault-grid { grid-template-columns: repeat(3, 1fr); }
  .vault-cell.is-extra { display: none; }

  .wallet-tiles { grid-template-columns: 1fr 1fr; }
  .wallet-tile.is-perf { grid-column: 1 / -1; }

  .act-line h2 { font-size: clamp(26px, 7.4vw, 38px); }
}

/* ============================================================
   Dégradation — prefers-reduced-motion : plus aucun scrub.
   Chaque acte redevient une section simple ; Mew est une image
   statique affichée par les slots qui la montrent.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  #mew { display: none; }
  .act { height: auto !important; }
  .act-stage { position: relative; height: auto; min-height: 100svh; overflow: visible; padding: 80px 0; }
  [data-step] { opacity: 1 !important; transform: none !important; transition: none; }
  .act-line { position: relative; left: auto; top: auto !important; bottom: auto !important; transform: none; margin: 40px auto; }
  .mew-slot { visibility: visible; }
  .mew-slot .mew-fallback { display: block; width: 100%; border-radius: 4.7% / 3.4%; }
  .cloud, .hero-scroll-cue, .focus-scan { display: none; }
  .hero-copy { position: relative; left: auto; top: auto; transform: none; opacity: 1; margin: 0 auto; }
  .cloud-slot { position: relative; left: auto; top: auto; margin: 40px auto 0; }
  .binder { transform: none; opacity: 1; }
  .deal-ring-wrap .fg { stroke-dashoffset: 8; }
  .deal-gauge i { transform: none; }
  .wallet-chart .line { stroke-dashoffset: 0; }
  .wallet-chart .fill { opacity: 1; }
  .vault-item { display: none; }
  .vault-frame { position: relative; left: auto; top: auto; transform: none; margin: 0 auto; opacity: 1; }
  .final-float { display: none; }
  .final-slot { position: relative; left: auto; top: auto; margin: 0 auto 30px; }
  .hero-nebula, .focus-halo { animation: none; }
  .lang-fan { position: static; display: flex; justify-content: center; gap: 14px; margin: 30px auto 0; width: auto; height: auto; }
  .lang-card { position: static; transform: none !important; width: 148px; }
  .lang-tags { position: static; transform: none; justify-content: center; margin-top: 20px; }
  .feed-wrap { margin-top: 0; }
  .feed-post.is-dim { opacity: .58; }
}

@media (max-width: 760px) {
/* Bloc final « ta collection, ton wallet, ta communaute » — voile de lisibilité, mobile uniquement.
 *
 * Le texte est déjà au-dessus des cartes (z-index), mais sur un écran étroit
 * les cartes viennent se placer pile derrière lui : un titre blanc posé sur des
 * illustrations très contrastées devient illisible, même sans recouvrement.
 *
 * Plutôt que d'écarter les cartes — ce qui casserait la composition du nuage —
 * on glisse un fond radial entre les deux. Il est interne au bloc de texte
 * (z-index négatif dans son propre contexte d'empilement), donc il masque les
 * cartes sans jamais masquer le texte, et s'éteint en fondu sur les bords pour
 * ne pas se voir comme un rectangle. */
.hero-copy::before,
.final-copy::before {
  content: '';
  position: absolute;
  inset: -10% -16%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(6, 6, 8, .94) 0%,
    rgba(6, 6, 8, .86) 42%,
    rgba(6, 6, 8, .55) 66%,
    rgba(6, 6, 8, 0) 82%
  );
}
}


/* ============================================================
   Mobile — composition du hero et du bloc final
   ============================================================

   Trois problemes se cumulaient sur telephone :

   1. les cartes du nuage tombaient sur le titre. Mesure a 390px : la copie
      occupe la bande 28%-72% de la hauteur, et trois cartes entraient dedans,
      dont une a 72% de sa surface sur le texte ;
   2. une premiere correction les avait poussees a 87% et 92%, ou elles se
      faisaient trancher par le bas de l'ecran — pire que le probleme initial ;
   3. les badges stores se marchaient dessus, et leurs pastilles « Bientot »
      debordaient sur le badge voisin.

   Parti pris : sur un ecran etroit, le nuage devient une **bande haute**. Les
   cartes se regroupent au-dessus du titre, aucune en dessous. Le bas reste
   libre pour l'appel a l'action et l'invite au scroll — c'est la zone du pouce,
   elle doit respirer. Trois cartes suffisent a lire un nuage ; les six d'origine
   ne font qu'encombrer 390px de large. */
@media (max-width: 760px) {

  /* ---- nuage du hero : une bande haute, rien sous le titre ---- */
  #cloud .cloud-card {
    width: clamp(78px, 23vw, 112px);
    margin-left: calc(clamp(78px, 23vw, 112px) / -2);
  }
  /* Attention : .cloud-card.is-deep est deja masquee des 900px par la regle
     existante — l auteur retire volontairement les cartes les plus profondes
     sur petit ecran. Il ne reste donc que les nth-of-type 2, 4, 5 et 6, et
     c est sur celles-la qu il faut travailler. */
  /* La navbar fait 64px de haut : en dessous de ~12% de la hauteur d ecran,
     les cartes se font trancher par elle. On les descend sous cette ligne. */
  /* Deux cartes en haut, deux en bas : elles encadrent le texte au lieu de
     s empiler au-dessus. Un amas de trois cartes serrees en haut se lisait
     comme un accident, alors qu un cadrage symetrique se lit comme une
     composition.

     Plancher en pixels et pas seulement en pourcentage : sur un ecran court
     (568px de haut), 11% ne fait que 62px — moins que la navbar, et la carte
     repassait dessous. max() garantit la marge quelle que soit la hauteur. */
  #cloud .cloud-card:nth-of-type(4) { top: max(80px, 10%); left: 15%; }
  #cloud .cloud-card:nth-of-type(5) { top: max(96px, 12%); left: 85%; }
  /* Les deux cartes basses sont ancrees depuis le BAS : cale en pourcentage
     du haut, leur position derivait avec la hauteur d ecran et elles finissaient
     par mordre les badges stores. Ancrees en bas, la marge reste constante. */
  #cloud .cloud-card:nth-of-type(2) { top: auto; bottom: 10%; left: 10%; }
  #cloud .cloud-card:nth-of-type(6) { top: auto; bottom: 6%;  left: 90%; }

  #cloud .mew-slot { top: max(88px, 12%); left: 35%; }

  /* ---- appels a l action ---- */
  /* Le bouton principal prend toute la largeur : sur telephone une action
     primaire ne se partage pas une ligne. Les badges passent en dessous, sur
     leur propre rangee, avec la place qu il faut au-dessus pour la pastille. */
  .hero-ctas,
  .final-ctas,
  .final-stores {
    display: flex; flex-direction: column; align-items: stretch;
    gap: 12px;
  }
  .hero-ctas .btn-primary,
  .final-ctas .btn-primary { width: 100%; }

  /* Les badges stores reviennent en rangee, mais entre eux seulement. */
  .hero-ctas { flex-flow: row wrap; justify-content: center; row-gap: 22px; }
  .hero-ctas .btn-primary { flex: 1 0 100%; }
  /* Trois badges ne tiennent pas sur une ligne a cette largeur : ils se
     cassaient en 2+1, ce qui se lit comme un accident de mise en page plutot
     que comme un choix. Empiles et centres, la rangee devient deliberee. */
  .final-stores { flex-flow: column nowrap; align-items: center; row-gap: 20px; }

  .store-badge { flex: 0 1 auto; }
  .store-badge img { height: 44px; width: auto; }
  .store-badge--web { height: 44px; }

  /* Empiles, des badges de largeurs differentes donnent des bords en escalier.
     On leur impose une meme boite et on centre l image dedans : les trois
     s alignent, la colonne devient nette. */
  .final-stores .store-badge,
  .final-stores .store-badge--web {
    /* 200px et pas 230 : au-dela, les bords de la boite atteignent les cartes
       decoratives qui bleedent sur les cotes, et se font mordre. */
    width: min(200px, 60vw);
    justify-content: center;
  }

  /* La pastille « Bientot » se posait par-dessus le badge et masquait son
     texte. On la sort entierement au-dessus : elle ne touche plus la surface
     du badge, et le row-gap lui reserve la place. */
  /* La pastille doit rester SOLIDAIRE du badge : detachee au-dessus, elle
     flotte dans le vide et ne se rattache plus visuellement a rien. On la
     pose a cheval sur le coin superieur droit — elle mord 9px sur le badge,
     soit sa marge haute, jamais son texte. */
  .store-badge.is-soon::after {
    /* Collée au-dessus du badge (2px d'air) : à cheval de 9px, elle masquait
       encore « Télécharger dans » / « Disponible sur ». */
    top: auto; bottom: calc(100% + 2px); right: 0;
    font-size: 11px; padding: 2px 8px;
  }

  /* Redondant avec les badges juste en dessous, qui disent exactement la meme
     chose : sur 390px de large cette ligne ne fait qu ajouter du bruit. */
  .hero-platforms { display: none; }

  /* ---- bloc final ---- */
  /* Deux cartes se posaient integralement sur le texte (100% et 96% de leur
     surface). Les deux qui restent encadrent sans genrer. */
  .final-float:nth-of-type(2),
  .final-float:nth-of-type(3) { display: none; }
  .final-float:nth-of-type(4) { top: 82%; left: 8%; }
  .final-float:nth-of-type(5) { top: 84%; left: 92%; }

  /* Le bloc final commencait sous la navbar : son logo etait tranche. */
  .act-final .act-stage { padding-top: 76px; }
  .final-copy .logo { margin-bottom: 18px; }
}

@media (max-width: 380px) {
  /* Sous 380px les deux badges ne tiennent plus cote a cote sans deborder. */
  .store-badge img { height: 40px; }
  .store-badge--web { height: 40px; }
}

/* ============================================================
   Retouches telephone (15/11) — badges, titres, cibles tactiles
   ============================================================ */
@media (max-width: 760px) {
  /* La pastille « Bientot » est posee au-dessus du badge (cf. plus haut) :
     avec 22px d'ecart elle touchait le bouton principal. */
  .hero-ctas { row-gap: 30px; }

  /* Bloc final : les deux stores cote a cote (comme dans le hero), le badge
     Web sur sa propre ligne. Empiles dans des boites de 200px, les badges
     paraissaient de tailles differentes et la pastille « Bientot » flottait
     loin du badge, au bord droit de la boite vide. */
  .final-stores { flex-flow: row wrap; justify-content: center; align-items: center; column-gap: 12px; row-gap: 30px; }
  .final-stores .store-badge,
  .final-stores .store-badge--web { width: auto; }
  .final-stores .store-badge--web { flex: 0 0 auto; }

  /* Le badge officiel Google Play embarque une marge transparente : a hauteur
     egale il paraissait plus petit que celui de l'App Store. */
  .store-badge img[src*="google-play"] { height: 52px; margin: -4px -5px; }

  /* Titres de scene : lignes equilibrees (« FR. EN. JP. Une / seule
     collection. » laissait un mot orphelin en fin de premiere ligne). */
  .act h2, .story h2 { text-wrap: balance; }
  .act-langs h2 em { display: block; }

  /* « Deja un compte ? Se connecter » : 18px de haut, trop petit au doigt. */
  .final-ctas .btn-text { display: inline-block; padding: 11px 12px; }
}

@media (max-width: 380px) {
  .store-badge img[src*="google-play"] { height: 47px; margin: -3.5px -4.5px; }
}

/* ============================================================
   Ecrans courts (paysage, petits telephones)
   ============================================================

   A 568px de haut la colonne de badges du bloc final ne rentre plus sous le
   texte : le contenu deborde vers le haut et le logo repasse sous la navbar.
   On resserre tout le bloc et on remet les badges en ligne — sur un ecran
   court c'est la hauteur qui manque, pas la largeur. */
@media (max-width: 760px) and (max-height: 700px) {
  /* Mesure a 320x568 : il reste 45px entre le bas de la navbar et le titre,
     pour des cartes de 85px de haut. Il n y a physiquement pas la place, et
     tout compromis produit un chevauchement. On retire le nuage — le wordmark
     porte le hero a lui seul, ce qui donne un ecran plus net de toute facon. */
  #cloud .cloud-card { display: none; }

  /* Meme raison en bas de page : les cartes flottantes venaient mordre sur le
     premier badge. Sur un ecran aussi court, la decoration passe apres la
     lisibilite. */
  .final-float { display: none; }

  .final-stores { flex-flow: row wrap; justify-content: center; row-gap: 26px; column-gap: 10px; }
  .final-stores .store-badge,
  .final-stores .store-badge--web { width: auto; }
  .store-badge img { height: 34px; }
  .store-badge--web { height: 34px; padding: 0 10px 0 8px; }
  .store-badge--web .t b { font-size: 14px; }
  .store-badge--web .t small { font-size: 11px; }

  .final-copy .logo { height: 42px; margin-bottom: 10px; }
  .final-copy h2 { font-size: clamp(23px, 6.4vw, 30px); }
  .final-copy > p { margin-top: 10px; font-size: 13.5px; }
  .final-ctas { gap: 8px; }
  .act-final .act-stage { padding-top: 70px; }
}

/* ============================================================
   Tres courts — telephone en paysage
   ============================================================

   Le regime precedent exigeait aussi max-width:760px. Or un telephone en
   paysage fait 844px de large pour 390px de haut : il echappait a la regle et
   recevait la mise en page bureau dans une fenetre de 390px de haut. Resultat,
   le logo repassait sous la navbar et le decor tombait sur le texte.

   Ce bloc ne regarde donc que la hauteur. Sous 520px, aucun ecran de bureau
   realiste n est concerne — seuls les telephones couches le sont. */
@media (max-height: 520px) {
  #cloud .cloud-card { display: none; }
  .final-float { display: none; }

  .act-final .act-stage { padding-top: 72px; }
  .final-copy .logo { height: 38px; margin-bottom: 8px; }
  .final-copy h2 { font-size: clamp(22px, 4vw, 30px); }
  .final-copy > p { margin-top: 8px; font-size: 13.5px; }
  .final-ctas { margin-top: 14px; gap: 8px; }

  /* En paysage la largeur ne manque pas : les badges tiennent sur une ligne. */
  .final-stores { margin-top: 16px; flex-flow: row wrap; justify-content: center; column-gap: 10px; row-gap: 24px; }
  .final-stores .store-badge,
  .final-stores .store-badge--web { width: auto; }
  .store-badge img { height: 34px; }
  .store-badge--web { height: 34px; }

  .hero-copy { height: auto; }
}
