/* SlotDrop — couche « Lux » : les codes visuels d'une salle de casino haut de gamme
   ═══════════════════════════════════════════════════════════════════════════
   Posée par inject-lux.py sur tout le site, retirée par --retirer. Elle ne
   change ni le texte ni la structure : lumière, or, mouvement.

     · une scène fixe derrière le contenu : velours sombre, deux faisceaux
       de projecteur qui balaient lentement, poussière d'or, et un halo qui
       suit le pointeur (sd-lux.js) ;
     · une lumière qui court autour du menu, comme les ampoules d'un fronton ;
     · l'or métallique sur les mots forts des titres, avec un reflet qui passe ;
     · un reflet qui traverse les boutons dorés ;
     · des cartes qui s'allument au survol, et une lumière qui fait le tour
       des cartes d'outils et d'offre ;
     · une apparition douce des blocs au défilement (sd-lux.js), jamais sur
       ce qui est déjà à l'écran : le titre principal s'affiche tout de suite.

   Thème sombre seulement pour la scène et les halos : sur fond clair ils
   saliraient la page. prefers-reduced-motion coupe tout mouvement. */

:root {
  --lux-gold: linear-gradient(100deg, #b8760a 0%, #ffd76a 18%, #fff4c9 30%, #ffc632 44%, #c98a0c 62%, #ffe08a 82%, #b8760a 100%);
  --lux-glow: 0 0 0 1px rgba(255, 214, 102, .35), 0 18px 50px -18px rgba(255, 198, 50, .45);
}

/* ── La scène ─────────────────────────────────────────────────────────── */
.sd-lux-stage { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sd-lux-stage::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1100px 560px at 50% -12%, rgba(255, 198, 50, .11), transparent 62%),
    radial-gradient(900px 700px at 105% 105%, rgba(167, 139, 250, .11), transparent 60%),
    radial-gradient(780px 620px at -8% 92%, rgba(34, 240, 142, .08), transparent 60%);
}
/* Le halo qui suit le pointeur : derrière le contenu, il éclaire les marges. */
.sd-lux-stage::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(520px 520px at var(--lux-x, 50%) var(--lux-y, 30%), rgba(255, 214, 102, .09), transparent 70%);
  transition: background .2s linear;
}
.sd-lux-beam {
  position: absolute; top: -25vh; width: 34vw; min-width: 260px; height: 150vh;
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(255, 214, 102, .13), rgba(255, 214, 102, 0) 72%);
  filter: blur(26px); transform-origin: 50% 0; will-change: transform; mix-blend-mode: screen;
}
.sd-lux-beam.l { left: 4vw; animation: luxBeamL 19s ease-in-out infinite alternate; }
.sd-lux-beam.r { right: 4vw; animation: luxBeamR 23s ease-in-out infinite alternate;
  background: linear-gradient(180deg, rgba(190, 160, 255, .12), rgba(190, 160, 255, 0) 72%); }
@keyframes luxBeamL { from { transform: rotate(-20deg); } to { transform: rotate(12deg); } }
@keyframes luxBeamR { from { transform: rotate(18deg); } to { transform: rotate(-14deg); } }
.sd-lux-dust { position: absolute; inset: 0; width: 100%; height: 100%; }
html[data-theme="light"] .sd-lux-stage { display: none; }

/* ── Les anneaux de lumière : menu, cartes d'outils, offre ──────────────
   sd-lux.js pose un <i class="lux-ring"> dans chaque élément. L'anneau est
   un cadre de 2 px découpé par masque ; à l'intérieur, un grand dégradé
   conique TOURNE par transform. La première version animait l'angle du
   dégradé via @property : Safari sur iPhone affichait le contour mais le
   laissait figé. Une rotation par transform s'anime partout, et sur la
   carte graphique. */
html:not([data-theme="light"]) .navwrap .nav, .sd-ho { position: relative; }
.lux-ring { position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none; z-index: 2;
  overflow: hidden; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.lux-ring::before { content: ""; position: absolute; left: 50%; top: 50%; width: 250%; aspect-ratio: 1;
  background: conic-gradient(transparent 0 58%, rgba(255, 214, 102, .3) 68%, #ffd76a 78%, #fff3c4 81%, #ffd76a 84%, rgba(255, 214, 102, .3) 90%, transparent 96%);
  transform: translate(-50%, -50%) rotate(0deg); animation: luxRot 6s linear infinite; will-change: transform; }
.navwrap .nav > .lux-ring { inset: -1px; }
.navwrap .nav > .lux-ring::before { animation-duration: 7s; }
.tool:nth-child(2n) > .lux-ring::before { animation-duration: 7.5s; animation-direction: reverse; }
@keyframes luxRot { to { transform: translate(-50%, -50%) rotate(360deg); } }
html[data-theme="light"] .lux-ring { display: none; }

/* ── Titres : l'or métallique sur les mots forts ──────────────────────── */
html:not([data-theme="light"]) .hero h1 em,
html:not([data-theme="light"]) h1 .grad,
html:not([data-theme="light"]) .article-header h1 em {
  background: var(--lux-gold); background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent !important; -webkit-text-fill-color: transparent !important;
  animation: luxShine 9s linear infinite;
}
@keyframes luxShine { to { background-position: 220% center; } }
html:not([data-theme="light"]) main h1 { text-shadow: 0 0 40px rgba(255, 214, 102, .10); }
html:not([data-theme="light"]) main h2:not([class]) { position: relative; }

/* ── Boutons dorés : un reflet qui passe ──────────────────────────────── */
.btn-gold, .sd-ho-btn, .sd-offer-btn { position: relative; overflow: hidden; isolation: isolate; }
.btn-gold::before, .sd-ho-btn::before, .sd-offer-btn::before {
  content: ""; position: absolute; inset: -2px; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .7) 48%, transparent 64%);
  transform: translateX(-130%); animation: luxSweep 4.2s cubic-bezier(.6, 0, .2, 1) infinite;
}
.sd-ho-btn::before { animation-delay: .8s; }
@keyframes luxSweep { 0%, 55% { transform: translateX(-130%); } 85%, 100% { transform: translateX(130%); } }
html:not([data-theme="light"]) .btn-gold, html:not([data-theme="light"]) .sd-ho-btn {
  box-shadow: 0 0 0 1px rgba(255, 230, 150, .35) inset, 0 10px 30px -10px rgba(255, 198, 50, .65);
}

/* ── Cartes : elles s'allument au survol ──────────────────────────────── */
.tool, .art, .lcard, .sd-ev, .bonus-card, .key-takeaway, .sd-rvw {
  transition: transform .35s var(--ease, ease), box-shadow .35s var(--ease, ease), border-color .35s;
}
html:not([data-theme="light"]) .tool:hover, html:not([data-theme="light"]) .art:hover,
html:not([data-theme="light"]) .lcard:hover, html:not([data-theme="light"]) .bonus-card:hover {
  border-color: rgba(255, 214, 102, .45) !important; box-shadow: var(--lux-glow), var(--card-shadow, none);
  transform: translateY(-3px);
}

/* Les grands chiffres brillent comme un néon. */
html:not([data-theme="light"]) .tool .num, html:not([data-theme="light"]) .lcard .big,
html:not([data-theme="light"]) .verdict .act, html:not([data-theme="light"]) .stat-v {
  text-shadow: 0 0 18px currentColor, 0 0 42px color-mix(in srgb, currentColor 45%, transparent);
}

/* ── Apparition au défilement ─────────────────────────────────────────── */
.lux-rv { opacity: 0; transform: translateY(26px) scale(.985); }
.lux-rv.lux-in { opacity: 1; transform: none;
  transition: opacity .7s var(--ease, ease) var(--lux-d, 0s), transform .8s var(--ease, ease) var(--lux-d, 0s); }

/* ── Mouvement réduit : tout s'arrête, rien ne se cache ───────────────── */
@media (prefers-reduced-motion: reduce) {
  .sd-lux-beam, .lux-ring::before,
  .btn-gold::before, .sd-ho-btn::before, .sd-offer-btn::before,
  .hero h1 em, h1 .grad, .article-header h1 em { animation: none !important; }
  .btn-gold::before, .sd-ho-btn::before, .sd-offer-btn::before { display: none; }
  .lux-rv { opacity: 1 !important; transform: none !important; }
  .sd-lux-dust { display: none; }
}
