/* SoundDrop — page du jeu (arkodinstudio.com/sounddrop et /en/sounddrop).
   S'appuie sur /style.css (gabarit « lp t-sd » des pages légales : palette Aurore / Nuit, polices,
   en-tête, pied) et n'ajoute que des classes « sd- ». Aucune dépendance externe hors Google Fonts. */

.sd {
  --violet: #8e6bf0;
  --violet-soft: rgba(142, 107, 240, 0.12);
  --cyan: #22b8c2;
  --gold: #f2b632;
  --pink: #f36b9c;
  --ink: #1f1b31;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.95);
  --stage-glow: rgba(255, 255, 255, 0.95);
  --floor: rgba(120, 100, 159, 0.22);
  --section: clamp(64px, 10vw, 128px);
  --radius: 30px;
}
@media (prefers-color-scheme: dark) {
  .sd {
    --violet: #a98bff;
    --violet-soft: rgba(169, 139, 255, 0.14);
    --cyan: #4be0e6;
    --pink: #ff8fb5;
    --glass: rgba(23, 34, 50, 0.72);
    --glass-border: rgba(255, 255, 255, 0.07);
    --stage-glow: rgba(255, 143, 181, 0.16);
    --floor: rgba(0, 0, 0, 0.45);
  }
}

.sd main {
  display: block;
  overflow-x: clip;
}
.sd h2 {
  margin: 0;
  color: var(--strong);
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.sd h3 {
  margin: 0;
  color: var(--strong);
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.sd p {
  margin: 0;
}
.sd-sec {
  position: relative;
  padding: var(--section) 0 0;
}
.sd-head {
  max-width: 40rem;
}
.sd-head.center {
  margin: 0 auto;
  text-align: center;
}
.sd-head .sd-lead {
  margin-top: 16px;
}
.sd-lead {
  color: var(--dim);
  font-size: clamp(16.5px, 1.5vw, 18.5px);
  line-height: 1.55;
  text-wrap: pretty;
}
.sd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px !important;
  padding: 5px 14px 5px 6px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 14px -6px rgba(120, 100, 159, 0.3);
  color: var(--link);
  font-family: var(--display);
  font-weight: 800;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sd-eyebrow img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* ---------- Téléphone ---------- */
.sd-phone {
  --pw: 280px;
  position: relative;
  width: var(--pw);
  flex-shrink: 0;
  padding: calc(var(--pw) * 0.034);
  border-radius: calc(var(--pw) * 0.17);
  background: linear-gradient(145deg, #3b3752, #16141f 38%, #0c0b12 70%, #2b283b);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 1px 0 1px rgba(255, 255, 255, 0.14) inset,
    0 40px 70px -28px rgba(62, 44, 110, 0.55), 0 18px 34px -18px rgba(38, 34, 58, 0.45);
}
.sd-phone::after {
  /* reflet sur la vitre */
  content: '';
  position: absolute;
  inset: calc(var(--pw) * 0.034);
  border-radius: calc(var(--pw) * 0.14);
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.16), transparent 32%);
  pointer-events: none;
}
.sd-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1320 / 2868;
  border-radius: calc(var(--pw) * 0.14);
  background: #f6eef7;
}
.sd-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sd-screen::before {
  /* Dynamic Island, au même endroit que sur les captures */
  content: '';
  position: absolute;
  z-index: 3;
  top: 1.4%;
  left: 50%;
  width: 22.5%;
  height: 3.95%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}
.sd-screen.dark {
  background: #0e1521;
}

/* ---------- Boutons ---------- */
.sd-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.sd-store {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 56px;
  padding: 9px 20px 9px 16px;
  border-radius: 16px;
  background: #111018;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 30px -14px rgba(31, 27, 49, 0.6);
  cursor: default;
  user-select: none;
  line-height: 1.1;
}
.sd-store svg {
  width: 26px;
  height: 30px;
  flex-shrink: 0;
  fill: currentColor;
}
.sd-store small {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.72;
}
.sd-store b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18.5px;
  letter-spacing: -0.01em;
}
@media (prefers-color-scheme: dark) {
  .sd-store {
    background: #fff;
    color: #111018;
    border-color: #fff;
    box-shadow: none;
  }
}
.sd-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 20px 10px 12px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  color: var(--strong) !important;
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none !important;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.sd-btn:hover {
  transform: translateY(-2px);
}
.sd-btn .play {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9dc1, var(--pink));
  color: #fff;
}
.sd-btn .play svg {
  width: 12px;
  height: 12px;
  margin-left: 2px;
  fill: currentColor;
}
.js .sd-btn[data-trailer-link][hidden] {
  display: none;
}

/* ---------- Hero ---------- */
.sd-hero {
  position: relative;
  padding: clamp(28px, 5vw, 64px) 0 0;
}
.sd-hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}
.sd-hero h1 {
  font-size: clamp(40px, 6.6vw, 80px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.sd-hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #f36b9c 5%, #a98bff 55%, #22b8c2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (prefers-color-scheme: dark) {
  .sd-hero h1 em {
    background-image: linear-gradient(100deg, #ff8fb5 5%, #b9a2ff 55%, #4be0e6 100%);
  }
}
.sd-hero .sd-lead {
  max-width: 31em;
  margin-top: 22px;
  font-size: clamp(17px, 1.7vw, 20px);
}
.sd-hero .sd-cta {
  margin-top: 30px;
}
.sd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.sd-chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--card-border);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.3;
}
.sd-chips img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Scène : téléphone + packs qui flottent */
.sd-stage {
  --mx: 0;
  --my: 0;
  position: relative;
  height: clamp(520px, 50vw, 640px);
  display: grid;
  place-items: center;
}
.sd-stage::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 46%;
  width: 118%;
  aspect-ratio: 1;
  max-width: 640px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--stage-glow), transparent 72%);
}
.sd-stage::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: 2%;
  width: 62%;
  height: 34px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--floor), transparent);
}
.sd-stage .sd-phone {
  --pw: clamp(236px, 22vw, 290px);
  z-index: 2;
  transform: translate3d(calc(var(--mx) * -6px), calc(var(--my) * -6px), 0) rotate(-3deg);
  transition: transform 0.4s var(--ease);
}
.sd-float {
  position: absolute;
  z-index: 3;
  transform: translate3d(calc(var(--mx) * var(--d, 14px)), calc(var(--my) * var(--d, 14px)), 0);
  transition: transform 0.5s var(--ease);
  pointer-events: none;
}
.sd-float img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 22px rgba(90, 64, 150, 0.3));
  animation: sd-float var(--t, 6s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  transform: rotate(var(--r, 0deg));
}
.sd-float.p1 {
  --r: -14deg;
  --d: 22px;
  --t: 6.5s;
  width: clamp(104px, 10vw, 140px);
  left: 0;
  top: 16%;
}
.sd-float.p2 {
  --r: 12deg;
  --d: 30px;
  --t: 5.8s;
  --delay: -2s;
  width: clamp(118px, 11.5vw, 160px);
  right: -2%;
  bottom: 12%;
}
.sd-float.p3 {
  --r: 18deg;
  --d: 12px;
  --t: 7.2s;
  --delay: -4s;
  z-index: 1;
  width: clamp(76px, 7vw, 98px);
  right: 8%;
  top: 4%;
}
.sd-float.mascot {
  --r: 0deg;
  --d: 18px;
  --t: 4.6s;
  --delay: -1s;
  width: clamp(92px, 8.5vw, 120px);
  left: 7%;
  bottom: 4%;
}
.sd-spark {
  position: absolute;
  z-index: 4;
  width: 22px;
  height: 22px;
  color: var(--gold);
  animation: sd-twinkle 3.2s ease-in-out infinite;
  pointer-events: none;
}
.sd-spark svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.sd-spark.s1 {
  left: 22%;
  top: 8%;
}
.sd-spark.s2 {
  right: 22%;
  top: 44%;
  width: 16px;
  height: 16px;
  animation-delay: -1.2s;
  color: #a98bff;
}
.sd-spark.s3 {
  left: 14%;
  top: 58%;
  width: 14px;
  height: 14px;
  animation-delay: -2.1s;
  color: var(--pink);
}

@keyframes sd-float {
  0%,
  100% {
    transform: translateY(0) rotate(var(--r, 0deg));
  }
  50% {
    transform: translateY(-14px) rotate(calc(var(--r, 0deg) + 3deg));
  }
}
@keyframes sd-twinkle {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.6) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1) rotate(20deg);
  }
}

/* ---------- Raretés ---------- */
.sd-rarity {
  padding-top: clamp(40px, 7vw, 88px);
}
.sd-rar-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px) 0 clamp(26px, 4vw, 44px);
  border-radius: var(--radius);
  background: radial-gradient(520px 260px at 80% 0%, rgba(255, 255, 255, 0.9), transparent 70%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42));
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}
@media (prefers-color-scheme: dark) {
  .sd-rar-panel {
    background: radial-gradient(520px 260px at 80% 0%, rgba(255, 143, 181, 0.12), transparent 70%),
      linear-gradient(135deg, #172232, #131c2a);
  }
}
.sd-rar-panel .sd-head {
  padding: 0 clamp(20px, 4vw, 48px);
}
.sd-cards {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 1.6vw, 20px);
  margin: clamp(26px, 4vw, 44px) 0 0;
  padding: 18px clamp(20px, 4vw, 48px) 26px;
  list-style: none;
}
.sd-card {
  --c1: #eef2f8;
  --c2: #c9d4e4;
  --pip: #7fa6d6;
  --glow: transparent;
  flex: 0 0 auto;
  width: clamp(128px, 13vw, 158px);
  transform: rotate(var(--rot, 0deg)) translateY(var(--ty, 0px));
  transition: transform 0.35s var(--ease);
}
.sd-card:nth-child(1) {
  --rot: -7deg;
  --ty: 22px;
}
.sd-card:nth-child(2) {
  --rot: -4deg;
  --ty: 8px;
}
.sd-card:nth-child(3) {
  --rot: -1.5deg;
  --ty: 0px;
}
.sd-card:nth-child(4) {
  --rot: 1.5deg;
  --ty: 0px;
}
.sd-card:nth-child(5) {
  --rot: 4deg;
  --ty: 8px;
}
.sd-card:nth-child(6) {
  --rot: 7deg;
  --ty: 22px;
}
.sd-card:hover {
  transform: rotate(0deg) translateY(-12px);
}
.sd-card-face {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  aspect-ratio: 5 / 7;
  padding: 9px 9px 10px;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--c1), var(--c2));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7) inset, 0 16px 30px -14px rgba(62, 44, 110, 0.45),
    0 0 34px -4px var(--glow);
  overflow: hidden;
}
.sd-card-face::after {
  /* reflet qui passe */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.55) 48%, transparent 60%);
  background-size: 250% 100%;
  background-position: 160% 0;
  animation: lp-sheen 6s ease-in-out infinite;
  animation-delay: var(--sheen, 0s);
  pointer-events: none;
}
.sd-card-lines {
  display: grid;
  gap: 4px;
  padding: 2px 2px 0;
}
.sd-card-lines i {
  display: block;
  height: 7px;
  width: 78%;
  border-radius: 4px;
  background: rgba(31, 27, 49, 0.55);
}
.sd-card-lines i + i {
  height: 5px;
  width: 50%;
  background: rgba(31, 27, 49, 0.25);
}
.sd-card-art {
  flex: 1;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.35) 70%);
  box-shadow: 0 0 0 1px rgba(31, 27, 49, 0.06) inset;
}
.sd-card-art img {
  width: 56%;
  height: auto;
  filter: drop-shadow(0 6px 8px rgba(62, 44, 110, 0.25));
}
.sd-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 0 2px;
  color: #1f1b31;
  font-family: var(--display);
  font-weight: 800;
  font-size: 11.5px;
  line-height: 1.1;
}
.sd-pips {
  color: var(--pip);
  font-size: 9px;
  letter-spacing: 1px;
}
.sd-card.r-uncommon {
  --c1: #e8fbf3;
  --c2: #9fe3c6;
  --pip: #2fae7c;
  --sheen: -1s;
}
.sd-card.r-rare {
  --c1: #e3f3ff;
  --c2: #8cc8f5;
  --pip: #3a8fd6;
  --sheen: -2s;
}
.sd-card.r-epic {
  --c1: #f1e9ff;
  --c2: #b597ff;
  --pip: #7a55e8;
  --glow: rgba(142, 107, 240, 0.35);
  --sheen: -3s;
}
.sd-card.r-legendary {
  --c1: #fff4c8;
  --c2: #f3bc45;
  --pip: #c98a09;
  --glow: rgba(242, 182, 50, 0.55);
  --sheen: -4s;
}
.sd-card.r-signed .sd-card-face {
  background: linear-gradient(160deg, #2a2440, #151221);
  box-shadow: 0 0 0 2px transparent, 0 16px 30px -14px rgba(62, 44, 110, 0.55), 0 0 40px -6px rgba(255, 143, 181, 0.6);
}
.sd-card.r-signed .sd-card-face::before {
  /* cadre holographique */
  content: '';
  position: absolute;
  inset: 0;
  padding: 3px;
  border-radius: inherit;
  background: conic-gradient(from var(--holo, 0deg), #ff9dc1, #ffe08a, #9fe3c6, #8cc8f5, #b597ff, #ff9dc1);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: sd-holo 6s linear infinite;
}
@property --holo {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@keyframes sd-holo {
  to {
    --holo: 360deg;
  }
}
.sd-card.r-signed .sd-card-lines i {
  background: rgba(255, 255, 255, 0.75);
}
.sd-card.r-signed .sd-card-lines i + i {
  background: rgba(255, 255, 255, 0.3);
}
.sd-card.r-signed .sd-card-art {
  position: relative;
  background: radial-gradient(circle at 50% 38%, rgba(255, 157, 193, 0.45), rgba(169, 139, 255, 0.2) 55%, transparent 75%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}
.sd-card.r-signed .sd-card-art img {
  width: 50%;
}
.sd-card.r-signed .sd-sig {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 6%;
  height: 34%;
  color: #ffe08a;
  opacity: 0.95;
}
.sd-card.r-signed .sd-card-foot {
  color: #fff;
}
.sd-serial {
  padding: 2px 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff9dc1, #b597ff);
  color: #1a0b12;
  font-size: 10px;
  letter-spacing: 0.02em;
}
.sd-rar-note {
  padding: 0 clamp(20px, 4vw, 48px);
  text-align: center;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- Bande-annonce ---------- */
.sd-trailer {
  display: none;
}
.js .sd-trailer {
  display: block;
}
.sd-trailer .sd-head {
  margin-bottom: clamp(24px, 4vw, 40px);
}
.sd-video {
  position: relative;
  overflow: hidden;
  max-width: 1040px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fbe3ef, #e7e3ff 55%, #dbf6f3);
  border: 1px solid var(--panel-border);
  box-shadow: 0 40px 80px -40px rgba(62, 44, 110, 0.55);
}
@media (prefers-color-scheme: dark) {
  .sd-video {
    background: linear-gradient(135deg, #1b2738, #151f2e);
  }
}
.sd-video.tall {
  aspect-ratio: 9 / 16;
  max-width: min(420px, 100%);
  max-height: 82vh;
  max-height: 82svh;
  margin: 0 auto;
}
.sd-video.tall video {
  object-fit: cover;
}
.sd-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sd-vctl {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  gap: 8px;
}
.sd-vbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px 8px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 16, 24, 0.66);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font: 800 14px/1 var(--body);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s var(--ease);
}
.sd-vbtn:hover {
  background: rgba(17, 16, 24, 0.82);
  transform: translateY(-1px);
}
.sd-vbtn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sd-vbtn.icon {
  width: 44px;
  justify-content: center;
  padding: 0;
}
.sd-vbtn .on,
.sd-vbtn[aria-pressed='true'] .off {
  display: none;
}
.sd-vbtn[aria-pressed='true'] .on {
  display: inline;
}

/* ---------- Blocs fonctionnalité (texte + téléphones) ---------- */
.sd-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}
.sd-split.flip .sd-visual {
  order: -1;
}
.sd-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}
.sd-visual::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: min(560px, 110%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--stage-glow), transparent 72%);
}
.sd-duo {
  display: flex;
  align-items: flex-end;
}
.sd-duo .sd-phone {
  --pw: clamp(200px, 19vw, 250px);
}
.sd-duo .sd-phone:first-child {
  z-index: 1;
  transform: rotate(-5deg) translate(18px, -18px);
}
.sd-duo .sd-phone:last-child {
  z-index: 2;
  transform: rotate(4deg) translate(-18px, 18px);
}
.sd-points {
  display: grid;
  gap: 18px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.sd-points li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.sd-points .ic {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--card-border);
  box-shadow: 0 6px 16px -8px rgba(120, 100, 159, 0.35);
}
.sd-points .ic img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.sd-points p {
  margin-top: 3px;
  color: var(--dim);
  font-size: 15.5px;
  line-height: 1.5;
}

/* Rangée de packs par style */
.sd-genres {
  display: flex;
  gap: 6px;
  margin: 26px 0 0;
  padding: 6px 0 12px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask: linear-gradient(90deg, #000 85%, transparent);
  mask: linear-gradient(90deg, #000 85%, transparent);
}
.sd-genres::-webkit-scrollbar {
  display: none;
}
.sd-genres li {
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 64px;
  color: var(--dim);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}
.sd-genres img {
  width: 46px;
  height: auto;
  filter: drop-shadow(0 8px 8px rgba(90, 64, 150, 0.22));
  transition: transform 0.25s var(--ease);
}
.sd-genres li:hover img {
  transform: translateY(-4px) rotate(-4deg);
}

/* ---------- Modes ---------- */
.sd-modes-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(28px, 6vw, 88px);
  margin-top: clamp(28px, 4vw, 48px);
}
.sd-tabs {
  display: grid;
  gap: 10px;
}
.sd-tab {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 14px 18px 14px 14px;
  border-radius: 22px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.sd-tab:hover {
  background: var(--glass);
}
.sd-tab[aria-selected='true'] {
  background: var(--panel);
  border-color: var(--card-border);
  box-shadow: var(--shadow);
}
.sd-tab .ic {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--accent-soft);
}
.sd-tab[aria-selected='true'] .ic {
  background: linear-gradient(135deg, rgba(255, 157, 193, 0.35), rgba(169, 139, 255, 0.3));
}
.sd-tab .ic img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.sd-tab .t {
  display: block;
  color: var(--strong);
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.sd-tab .d {
  display: block;
  margin-top: 3px;
  color: var(--dim);
  font-size: 15px;
  line-height: 1.5;
}
.sd-tab .tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 800;
  vertical-align: 2px;
}
.sd-modes-phone {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0 20px;
}
.sd-modes-phone::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 150%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--stage-glow), transparent 72%);
}
.sd-modes-phone .sd-phone {
  --pw: clamp(230px, 22vw, 280px);
}
.sd-modes-phone .sd-screen img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease);
}
.sd-modes-phone .sd-screen img.on {
  opacity: 1;
  transform: none;
}

/* ---------- Battles & ligues ---------- */
.sd-leagues {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 8px;
  margin: 30px 0 0;
  padding: 18px 14px;
  list-style: none;
  border-radius: 24px;
  background: var(--glass);
  border: 1px solid var(--card-border);
}
.sd-leagues li {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}
.sd-leagues img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(90, 64, 150, 0.2));
}
.sd-leagues li.hl {
  color: var(--strong);
}
.sd-leagues li.hl img {
  transform: scale(1.14);
  filter: drop-shadow(0 6px 14px rgba(242, 182, 50, 0.55));
}
.sd-power {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 14px 8px 8px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--card-border);
  box-shadow: 0 6px 16px -10px rgba(120, 100, 159, 0.4);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
}
.sd-power .dot {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b597ff, #8e6bf0);
}
.sd-power .dot img {
  width: 18px;
  height: 18px;
}

/* ---------- Échanges ---------- */
.sd-trade {
  position: relative;
  width: min(100%, 440px);
  padding: 20px;
  border-radius: 28px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: 0 30px 60px -30px rgba(62, 44, 110, 0.5);
}
.sd-trade-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.sd-trade-top .av {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd1e2, #d9ceff);
  color: #5a3a9a;
  font-family: var(--display);
  font-weight: 900;
  font-size: 14px;
}
.sd-trade-top b {
  display: block;
  color: var(--strong);
  font-family: var(--display);
  font-weight: 800;
  font-size: 15.5px;
  line-height: 1.2;
}
.sd-trade-top small {
  color: var(--dim);
  font-size: 12.5px;
  font-weight: 700;
}
.sd-trade-top img {
  width: 34px;
  height: 34px;
  margin-left: auto;
  object-fit: contain;
}
.sd-side {
  padding: 12px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--card-border);
}
.sd-side + .sd-swap + .sd-side {
  margin-top: 0;
}
.sd-side-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sd-coins {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--strong);
  font-size: 13.5px;
  letter-spacing: 0;
  text-transform: none;
}
.sd-coins img {
  width: 18px;
  height: 18px;
}
.sd-minis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}
.sd-mini {
  aspect-ratio: 5 / 7;
  border-radius: 9px;
  padding: 3px;
  background: linear-gradient(160deg, var(--c1, #eef2f8), var(--c2, #c9d4e4));
  box-shadow: 0 6px 12px -8px rgba(62, 44, 110, 0.5);
}
.sd-mini span {
  display: grid;
  place-items: center;
  height: 100%;
  border-radius: 6px;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.4) 75%);
}
.sd-mini img {
  width: 60%;
}
.sd-mini.empty {
  background: none;
  border: 1.5px dashed var(--line-2);
  box-shadow: none;
}
.sd-mini.rare {
  --c1: #e3f3ff;
  --c2: #8cc8f5;
}
.sd-mini.epic {
  --c1: #f1e9ff;
  --c2: #b597ff;
}
.sd-mini.leg {
  --c1: #fff4c8;
  --c2: #f3bc45;
  box-shadow: 0 0 16px -2px rgba(242, 182, 50, 0.6);
}
.sd-mini.unc {
  --c1: #e8fbf3;
  --c2: #9fe3c6;
}
.sd-swap {
  display: grid;
  place-items: center;
  height: 34px;
  margin: -6px 0;
  position: relative;
  z-index: 1;
}
.sd-swap span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9dc1, #a98bff);
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(142, 107, 240, 0.7);
}
.sd-swap svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sd-trade-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.sd-trade-actions span {
  display: grid;
  place-items: center;
  min-height: 46px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
}
.sd-trade-actions .ghost {
  background: var(--accent-soft);
  color: var(--link);
}
.sd-trade-actions .go {
  background: linear-gradient(180deg, #ff9dc1, #f36b9c);
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(243, 107, 156, 0.8);
}

/* ---------- Thèmes Aurore / Nuit ---------- */
.sd-compare {
  --pos: 50%;
  position: relative;
}
.sd-compare .sd-phone {
  --pw: clamp(240px, 24vw, 300px);
}
.sd-compare .sd-screen img {
  position: absolute;
  inset: 0;
}
.sd-compare .sd-screen .night {
  clip-path: inset(0 0 0 var(--pos));
}
.sd-compare .sd-screen::after {
  content: '';
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
}
.sd-knob {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: var(--pos);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  color: #1f1b31;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.sd-knob svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sd-compare input[type='range'] {
  position: absolute;
  z-index: 5;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
.sd-compare input[type='range']:focus-visible + .sd-knob {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.sd-theme-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
}
.sd-theme-labels span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--card-border);
  color: var(--strong);
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
}
.sd-theme-labels i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd1e2, #d9ceff 60%, #c7f3ee);
  box-shadow: 0 0 0 1px rgba(31, 27, 49, 0.1) inset;
}
.sd-theme-labels span + span i {
  background: linear-gradient(135deg, #0e1521, #243149);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

/* ---------- Gratuit + appel final ---------- */
.sd-final {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(28px, 5vw, 60px);
  border-radius: var(--radius);
  background: radial-gradient(520px 320px at 85% 40%, rgba(255, 255, 255, 0.95), transparent 70%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.46));
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}
@media (prefers-color-scheme: dark) {
  .sd-final {
    background: radial-gradient(520px 320px at 85% 40%, rgba(255, 143, 181, 0.14), transparent 70%),
      linear-gradient(135deg, #172232, #131c2a);
  }
}
.sd-free {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.sd-free li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.5;
}
.sd-free img {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.sd-free b {
  color: var(--strong);
}
.sd-final .sd-cta {
  margin-top: 30px;
}
.sd-contact {
  margin-top: 18px !important;
  color: var(--dim);
  font-size: 14.5px;
}
.sd-contact b {
  color: var(--strong);
  user-select: all;
  word-break: break-word;
}
.sd-final-art {
  position: relative;
  height: 340px;
}
.sd-final-art::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 70%;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--floor), transparent);
}
.sd-final-art img {
  position: absolute;
}
.sd-final-art .pk {
  left: 50%;
  bottom: 12%;
  width: 150px;
  margin-left: -75px;
  filter: drop-shadow(0 0 40px rgba(242, 182, 50, 0.55)) drop-shadow(0 22px 22px rgba(90, 64, 150, 0.3));
  animation: sd-float 6s ease-in-out infinite;
}
.sd-final-art .drop {
  left: 4%;
  bottom: 5%;
  width: 120px;
  animation: sd-float 4.6s ease-in-out infinite;
  animation-delay: -1.5s;
}
.sd-final-art .gem {
  right: 10%;
  top: 14%;
  width: 54px;
  --r: 12deg;
  animation: sd-float 5.4s ease-in-out infinite;
  animation-delay: -3s;
}
.sd-final-art .coin {
  right: 2%;
  bottom: 30%;
  width: 46px;
  --r: -10deg;
  animation: sd-float 6.2s ease-in-out infinite;
  animation-delay: -2s;
}

.sd-foot-note {
  max-width: 44rem;
}
.sd .lp-foot {
  margin-top: var(--section);
}
.sd .lp-foot p b {
  color: var(--strong);
  font-weight: 800;
}

/* ---------- Apparition au défilement ---------- */
.js .sd-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.8s var(--ease);
}
.js .sd-reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .sd-hero-in {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }
  .sd-hero .sd-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .sd-hero .sd-cta,
  .sd-chips {
    justify-content: center;
  }
  .sd-stage {
    height: clamp(460px, 80vw, 600px);
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }
  .sd-split,
  .sd-modes-in {
    grid-template-columns: minmax(0, 1fr);
  }
  .sd-split .sd-visual,
  .sd-split.flip .sd-visual {
    order: 2;
  }
  .sd-tabs {
    gap: 6px;
  }
  .js .sd-tab[aria-selected='false'] .d {
    display: none;
  }
  .sd-final {
    grid-template-columns: minmax(0, 1fr);
  }
  .sd-final-art {
    height: 260px;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
  }
  .sd-cards {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-top: 26px;
  }
  .sd-cards::-webkit-scrollbar {
    display: none;
  }
  .sd-card {
    scroll-snap-align: center;
    --ty: 0px !important;
  }
  .sd-card:first-child {
    margin-left: auto;
  }
  .sd-card:last-child {
    margin-right: auto;
  }
}
@media (min-width: 981px) {
  .sd-leagues {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
    padding: 18px 10px;
  }
  .sd-leagues img {
    width: 48px;
    height: 48px;
  }
  .sd-leagues li {
    font-size: 11px;
  }
}
@media (max-width: 720px) {
  .sd {
    --radius: 26px;
  }
  .sd-hero h1 {
    font-size: clamp(38px, 11vw, 56px);
  }
  .sd-hero .sd-cta {
    flex-direction: column;
  }
  .sd-chips li {
    font-size: 12.5px;
  }
  .sd-stage {
    height: 480px;
  }
  .sd-stage .sd-phone {
    --pw: 224px;
  }
  .sd-float.p1 {
    width: 96px;
    left: 2%;
  }
  .sd-float.p2 {
    width: 108px;
    right: 0;
  }
  .sd-float.p3 {
    width: 70px;
    right: 6%;
  }
  .sd-float.mascot {
    width: 84px;
    left: 4%;
  }
  .sd-visual {
    min-height: 0;
  }
  .sd-duo .sd-phone {
    --pw: min(46vw, 200px);
  }
  .sd-duo .sd-phone:first-child {
    transform: rotate(-5deg) translate(12px, -10px);
  }
  .sd-duo .sd-phone:last-child {
    transform: rotate(4deg) translate(-12px, 10px);
  }
  .sd-modes-phone .sd-phone {
    --pw: 210px;
  }
  .sd-float.p1 {
    width: 84px !important;
    left: -3% !important;
    top: 24%;
  }
  .sd-float.p2 {
    width: 96px !important;
    right: -4% !important;
    bottom: 18%;
  }
  .sd-card {
    width: 118px;
  }
  .sd-card-foot {
    font-size: 10.5px;
  }
  .sd-final-art {
    height: 270px;
  }
  .sd-final-art .pk {
    width: 112px;
    margin-left: -56px;
    bottom: 10%;
  }
  .sd-final-art .drop {
    width: 96px;
  }
  .sd-tab {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 12px;
  }
  .sd-tab .ic {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
  .sd-tab .ic img {
    width: 30px;
    height: 30px;
  }
  .sd-points li {
    grid-template-columns: 46px minmax(0, 1fr);
  }
  .sd-points .ic {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
  .sd-points .ic img {
    width: 30px;
    height: 30px;
  }
  .sd-trade {
    padding: 16px;
  }
  .sd-compare .sd-phone {
    --pw: 236px;
  }
  .sd-vctl {
    left: 10px;
    bottom: 10px;
  }
}
@media (max-width: 380px) {
  .sd-float.p2 {
    right: -4%;
  }
  .sd-float.p1 {
    left: -2%;
  }
}

/* Mouvement réduit : style.css coupe déjà les animations de .lp ; on fige aussi les effets JS. */
@media (prefers-reduced-motion: reduce) {
  .js .sd-reveal {
    opacity: 1;
    transform: none;
  }
  .sd-stage .sd-phone,
  .sd-float {
    transform: none !important;
  }
  .sd-stage .sd-phone {
    transform: rotate(-3deg) !important;
  }
  .sd-float img {
    transform: rotate(var(--r, 0deg));
  }
}

/* Petits objets qui flottent autour des téléphones des sections */
.sd-visual .sd-float {
  z-index: 3;
  transform: none;
}
.sd-float.tl {
  --r: -10deg;
  left: 2%;
  top: 6%;
  width: 84px;
}
.sd-float.tr {
  --r: 10deg;
  --delay: -2s;
  right: 4%;
  top: 4%;
  width: 84px;
}
.sd-float.br {
  --r: 8deg;
  --delay: -3.4s;
  right: 2%;
  bottom: 6%;
  width: 96px;
}
.sd-float.bl {
  --r: -6deg;
  --delay: -1.2s;
  left: 2%;
  bottom: 4%;
  width: 90px;
}
@media (max-width: 720px) {
  .sd-float.tl,
  .sd-float.tr {
    width: 60px;
  }
  .sd-float.br,
  .sd-float.bl {
    width: 70px;
  }
}
