/*
 * Pass S1 (DA2) : un vrai « battle pass ».
 * Panneau de tête avec halo rouge et or, barre d'XP animée, frise en piste, offre Premium dorée.
 * Seulement du style : le rendu JS du pass ne change pas. Chargé après boutique-pass.css.
 */
@keyframes reflet-pass { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(320%) skewX(-20deg); } }
@keyframes rayures-pass { to { background-position: 28px 0; } }
@keyframes flotte-pass { 50% { transform: translateY(-6px); } }

/* ---------- Tête : un seul panneau, halo rouge à gauche, or à droite ---------- */
html.da2 .pass-heros .cadre {
  position: relative; align-items: center; gap: clamp(20px, 4vw, 48px); padding: clamp(22px, 4vw, 44px); overflow: hidden;
  background: radial-gradient(circle at 0% 0%, rgb(232 32 46 / .26), transparent 50%), radial-gradient(circle at 100% 100%, rgb(251 191 36 / .14), transparent 55%), var(--plaque);
  border: 1px solid var(--trait); border-radius: 24px;
}
html.da2 .pass-heros h1 { font-size: clamp(34px, 4.2vw, 58px); line-height: 1.02; }
html.da2 .pass-heros h1 em {
  background: linear-gradient(100deg, #ffe08a, #fbbf24 45%, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgb(251 191 36 / .3));
}
html.da2 .pass-heros .accroche { max-width: 46ch; font-size: clamp(14px, 1.1vw, 16px); line-height: 1.55; }
html.da2 .pass-heros .accroche b { color: #fbbf24; }

/* Carte de niveau : badge qui brille, barre d'XP épaisse et vivante. */
html.da2 .niveau-joueur { position: relative; padding: clamp(18px, 2vw, 24px); background: rgb(9 14 25 / .6); border: 1px solid rgb(255 255 255 / .08); border-radius: 20px; backdrop-filter: blur(8px); }
html.da2 .niveau-joueur .hexa {
  position: relative; overflow: hidden; width: 92px; height: 92px; border-radius: 24px;
  background: linear-gradient(145deg, #ff4a55, var(--rouge) 55%, #9b0f19);
  box-shadow: 0 0 0 3px rgb(255 255 255 / .08), 0 12px 32px rgb(232 32 46 / .45);
}
html.da2 .niveau-joueur .hexa.premium { background: linear-gradient(145deg, #ffe08a, #fbbf24 55%, #b7791f); box-shadow: 0 0 0 3px rgb(255 255 255 / .1), 0 12px 32px rgb(251 191 36 / .4); }
html.da2 .niveau-joueur .hexa::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; background: linear-gradient(90deg, transparent, rgb(255 255 255 / .35), transparent); animation: reflet-pass 3.6s ease-in-out infinite; }
html.da2 .niveau-joueur .hexa span { font-size: 42px; }
html.da2 .barre-xp { height: 14px; background: rgb(255 255 255 / .08); box-shadow: inset 0 1px 3px rgb(0 0 0 / .4); }
html.da2 .barre-xp span {
  position: relative; display: block; height: 100%; background: linear-gradient(90deg, var(--rouge), #ff6a3d 70%, #fbbf24);
  box-shadow: 0 0 14px rgb(255 74 85 / .55);
}
html.da2 .barre-xp span::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: repeating-linear-gradient(-45deg, rgb(255 255 255 / .16) 0 7px, transparent 7px 14px); background-size: 28px 100%;
  animation: rayures-pass 1.2s linear infinite;
}
html.da2 .barre-xp.premium span { background: linear-gradient(90deg, #f59e0b, #fbbf24 60%, #ffe08a); box-shadow: 0 0 14px rgb(251 191 36 / .5); }
html.da2 .xp-chiffres { font-family: var(--f-chiffre, var(--f-titre)); }
html.da2 .prochaine { background: rgb(255 255 255 / .04); border: 1px solid rgb(255 255 255 / .07); transition: border-color .15s, transform .15s; }
html.da2 .prochaine:hover { border-color: var(--trait-fort); transform: translateX(3px); }
html.da2 .prochaine.premium { background: linear-gradient(90deg, rgb(251 191 36 / .1), transparent 70%); border-color: rgb(251 191 36 / .25); }

/* ---------- Tout récupérer : une pastille dorée, pas une barre pleine largeur ---------- */
html.da2 .tout-recuperer {
  justify-self: center; align-self: center; width: fit-content; margin-inline: auto; min-width: 240px; padding-inline: 28px; border: 0; border-radius: 99px;
  background: linear-gradient(100deg, #ffe08a, #fbbf24 50%, #f59e0b); color: #2a1c00; font-weight: 800;
  box-shadow: 0 10px 30px rgb(251 191 36 / .35), 0 0 0 4px rgb(251 191 36 / .15);
}
html.da2 .tout-recuperer:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgb(251 191 36 / .45), 0 0 0 5px rgb(251 191 36 / .2); }

/* ---------- Prochaine grosse récompense ---------- */
html.da2 .grosse-recompense { position: relative; overflow: hidden; border-radius: 20px; border-color: rgb(251 191 36 / .45); }
html.da2 .grosse-recompense::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #fbbf24; }
html.da2 .grosse-recompense strong { font-size: clamp(20px, 2vw, 28px); }

/* ---------- Frise : une piste dans un panneau ---------- */
html.da2 #v-pass .frise { padding: 16px 16px 10px; background: var(--plaque); border: 1px solid var(--trait); border-radius: 22px; }
html.da2 .etiq-voie { border-radius: 10px; }
html.da2 .etiq-voie.gratuit { background: linear-gradient(180deg, rgb(232 32 46 / .25), rgb(232 32 46 / .08)), var(--plaque); }
html.da2 .etiq-voie.premium { background: linear-gradient(180deg, rgb(251 191 36 / .25), rgb(251 191 36 / .08)), var(--plaque); }

html.da2 .recomp { border-radius: 14px; background: linear-gradient(180deg, rgb(232 32 46 / .1), transparent 55%), var(--plaque-2, #121a2a); }
html.da2 .recomp.premium { border-color: rgb(251 191 36 / .3); background: linear-gradient(180deg, rgb(251 191 36 / .14), transparent 60%), var(--plaque-2, #121a2a); }
html.da2 .recomp.exclu { box-shadow: inset 0 0 0 1px rgb(251 191 36 / .5); }
html.da2 .recomp.vide-r { background: none; border: 1px dashed rgb(255 255 255 / .06); }
html.da2 .recomp.vide-r:hover { transform: none; }
html.da2 .recomp .nom { font-weight: 700; }

html.da2 .palier-num::before { height: 6px; border-radius: 99px; }
html.da2 .palier-num.atteint::before { background: linear-gradient(90deg, var(--rouge), #ff4a55); box-shadow: 0 0 10px rgb(232 32 46 / .5); }
html.da2 .palier-num span { min-width: 36px; height: 28px; border-radius: 9px; font-weight: 800; }
html.da2 .palier-num.atteint span { background: var(--rouge); border-color: var(--rouge); color: #fff; }
html.da2 .palier-num.courant span { background: #fff; border-color: #fff; color: #0b111d; box-shadow: 0 0 0 4px rgb(255 255 255 / .18), 0 0 18px rgb(255 255 255 / .35); }
html.da2 .palier-num.jalon span { border-color: #fbbf24; color: #fbbf24; }
html.da2 .palier-num.jalon.atteint span { background: #fbbf24; color: #2a1c00; }

/* ---------- Offre Premium : panneau doré avec un reflet qui passe ---------- */
html.da2 .offre-premium {
  border-radius: 24px; border: 1px solid rgb(251 191 36 / .5);
  background: radial-gradient(circle at 100% 0%, rgb(251 191 36 / .28), transparent 55%), linear-gradient(120deg, rgb(251 191 36 / .1), transparent 60%), var(--plaque);
  box-shadow: 0 24px 60px rgb(251 191 36 / .12);
}
html.da2 .offre-premium::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 30%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(255 224 138 / .12), transparent); animation: reflet-pass 5s ease-in-out infinite;
}

/* ---------- Récompense ultime : le trophée flotte dans un halo ---------- */
html.da2 .recompense-finale {
  border-radius: 24px; border-color: rgb(251 191 36 / .35);
  background: radial-gradient(circle at 12% 50%, rgb(251 191 36 / .22), transparent 40%), var(--plaque);
}
html.da2 .recompense-finale > :first-child { animation: flotte-pass 3.2s ease-in-out infinite; filter: drop-shadow(0 10px 24px rgb(251 191 36 / .45)); }

/* ---------- Comment gagner de l'XP : chaque source a sa couleur ---------- */
html.da2 .sources-xp .source { position: relative; overflow: hidden; padding: 16px 16px 14px; border-radius: 16px; background: linear-gradient(180deg, color-mix(in srgb, var(--c, #fbbf24) 14%, transparent), transparent 70%), var(--plaque); transition: transform .15s, border-color .15s; }
html.da2 .sources-xp .source::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--c, #fbbf24); }
html.da2 .sources-xp .source strong { color: var(--c, #fbbf24); font-size: 26px; }
html.da2 .sources-xp .source:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c, #fbbf24) 50%, var(--trait)); }

@media (max-width: 820px) {
  html.da2 .pass-heros .cadre { padding: 20px; }
  html.da2 .niveau-joueur .hexa { width: 76px; height: 76px; border-radius: 20px; }
  html.da2 .niveau-joueur .hexa span { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html.da2 .niveau-joueur .hexa::after, html.da2 .barre-xp span::after, html.da2 .offre-premium::after, html.da2 .recompense-finale > :first-child { animation: none; }
  html.da2 .prochaine:hover, html.da2 .tout-recuperer:hover, html.da2 .sources-xp .source:hover { transform: none; }
}
