/* =====================================================================
   PAGE PARTENAIRE (joueurs invités) — riche, illustrée, code toujours accessible
   S'appuie sur home.css (animations, tuiles, carrousel, CTA final).
   ===================================================================== */
.pp2-hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: #050f24; }
.pp2-hero__bg { position: absolute; inset: 0; z-index: -1; }
.pp2-hero__bg::before { content: ""; position: absolute; inset: -4%;
  background: url("../img/home/hero-desktop.webp") right 30% / cover no-repeat; opacity: .8; filter: saturate(1.08);
  animation: kenburns 26s ease-in-out infinite alternate; }
.pp2-hero__bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #050f24 0%, rgba(5,15,36,.88) 38%, rgba(5,15,36,.35) 72%, rgba(5,15,36,.55)),
              linear-gradient(0deg, #050f24, transparent 35%); }
@media (max-width: 899px) {
  /* mobile : visuel net en haut, puis fondu dans la nuit sous le nom du partenaire */
  .pp2-hero__bg::before { inset: 0 0 auto 0; height: 125vw; opacity: .9; animation: none;
    background: url("../img/home/hero-mobile.webp") center top / 100% auto no-repeat; }
  .pp2-hero__bg::after { background: linear-gradient(180deg, rgba(5,15,36,.35) 0, rgba(5,15,36,.7) 40vw, rgba(5,15,36,.92) 80vw, #050f24 120vw, #050f24 100%); }
}
.pp2-hero__inner { position: relative; display: grid; gap: 1.6rem; padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(40px, 7vw, 88px);
  grid-template-areas: "id" "bio" "code"; }
@media (min-width: 900px) {
  .pp2-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); grid-template-areas: "id code" "bio code";
    align-items: start; column-gap: 3rem; }
}
.pp2-id { grid-area: id; display: flex; gap: 1.1rem; align-items: center; animation: h-rise .8s cubic-bezier(.2,.7,.2,1) both; }
.pp2-id > div:last-child { min-width: 0; }
.pp2-id h1 { color: #fff; font-size: clamp(2rem, 6.5vw, 3.3rem); line-height: 1.05; margin: .1rem 0 .4rem; overflow-wrap: anywhere; }
.pp2-sub { color: rgba(255,255,255,.82); margin: 0; }
.pp2-bio { grid-area: bio; color: rgba(255,255,255,.85); font-size: 1.05rem; line-height: 1.7; max-width: 36em; margin: 0;
  animation: h-rise .8s cubic-bezier(.2,.7,.2,1) .1s both; }
.pp2-avatar { position: relative; flex: none; }
.pp2-avatar::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; z-index: 0;
  background: conic-gradient(from 0deg, #ffd21f, #1f8bff, #1173ea, #ffd21f); animation: spin 6s linear infinite; }
.pp2-avatar .avatar { position: relative; z-index: 1; box-shadow: 0 0 0 4px #050f24; }
@keyframes spin { to { transform: rotate(360deg); } }
.pp2-badge { position: absolute; z-index: 2; right: -2px; bottom: 2px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: #1f9d55; color: #fff; font-weight: 900; font-size: .8rem; box-shadow: 0 0 0 3px #050f24; }

/* Carte du code promo avec halo animé */
.pp2-code { grid-area: code; position: relative; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-radius: 24px;
  padding: clamp(1rem, 3vw, 1.5rem); backdrop-filter: blur(10px); display: grid; gap: .9rem; animation: h-rise .9s cubic-bezier(.2,.7,.2,1) .2s both; }
.pp2-code__glow { position: absolute; inset: -2px; z-index: -1; border-radius: 26px; background: linear-gradient(120deg, #ffd21f, #1f8bff, #1173ea, #ffd21f);
  background-size: 300% 300%; filter: blur(16px); opacity: .28; animation: glow 6s ease-in-out infinite; }
@keyframes glow { 50% { background-position: 100% 50%; opacity: .45; } }
.pp2-ticket { padding: 1.1rem 1.2rem; }
.pp2-ticket .code { font-size: clamp(2rem, 9vw, 3.2rem); white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 559px) {
  .pp2-code .pp2-ticket { grid-template-columns: 1fr; text-align: center; }
  .pp2-code .pp2-ticket .copy { border-left: 0; border-top: 2px dashed rgba(255, 210, 31, .45); padding: .7rem 0 0; }
  .pp2-code .pp2-ticket .copy .btn { width: 100%; }
}
.pp2-tag { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #ffd83a;
  background: rgba(245,196,0,.12); border: 1px solid rgba(245,196,0,.35); border-radius: 999px; padding: .2rem .6rem; }
.pp2-code .ticket::before, .pp2-code .ticket::after { background: #0b1d40; }
.pp2-code { background: rgba(10, 26, 60, .55); border-color: rgba(140, 180, 255, .2); }
.pp2-badge { background: #1f8bff; }
.pp2-cta { min-height: 56px; font-size: 1.02rem; }
.pp2-perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.pp2-perks li { display: grid; justify-items: center; gap: .25rem; text-align: center; font-size: .78rem; font-weight: 800; color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.06); border-radius: 14px; padding: .6rem .3rem; }
.pp2-perk-icon { width: 40px; height: 40px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.4)); }
.pp2-note { margin: 0; font-size: .74rem; color: rgba(255,255,255,.6); }

/* Bannière principale avec reflet */
.pp2-banner { padding: clamp(20px, 4vw, 36px) 0 0; }
.pp2-banner__link { position: relative; overflow: hidden; display: block; border-radius: 18px; }
.pp2-banner__link::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); animation: shine 5s ease-in-out infinite; }
.pp2-banner .visual { border-radius: 18px; }
/* bannière : visuel net sans texte + message et code en HTML (toujours lisibles et à jour) */
.pp2-banner__box { position: relative; border-radius: 18px; overflow: hidden; background: #0a1836; isolation: isolate;
  box-shadow: 0 24px 48px -28px rgba(0,0,0,.8); border: 1px solid rgba(140,180,255,.18); }
.pp2-banner__img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 3; object-fit: cover; object-position: 78% 40%; }
@media (min-width: 700px) { .pp2-banner__img { aspect-ratio: 4 / 1; object-position: center; } }
.pp2-banner__box::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(5,13,31,.94) 0%, rgba(5,13,31,.75) 38%, rgba(5,13,31,0) 66%); }
.pp2-banner__text { position: absolute; z-index: 2; left: clamp(16px, 4vw, 44px); top: 50%; transform: translateY(-50%);
  display: grid; gap: .45rem; justify-items: start; max-width: min(60%, 520px); color: #fff; }
.pp2-banner__kicker { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #9fc2f5; }
.pp2-banner__text strong { font-family: var(--display); font-size: clamp(1.15rem, 3.2vw, 1.9rem); line-height: 1.15; }
.pp2-banner__code { color: #ffd21f; text-shadow: 0 0 16px rgba(255,210,31,.45); white-space: nowrap; }
.pp2-banner__go { display: inline-block; margin-top: .2rem; padding: .5rem 1rem; border-radius: 999px; font-weight: 800; font-size: .9rem;
  background: linear-gradient(180deg, #3a9bff, #1173ea); color: #fff; box-shadow: 0 8px 20px -8px rgba(31,139,255,.8); }
@media (max-width: 699px) {
  .pp2-banner__box::after { background: linear-gradient(90deg, rgba(5,13,31,.95) 0%, rgba(5,13,31,.7) 55%, rgba(5,13,31,.1) 100%); }
  .pp2-banner__text { max-width: 66%; }
}
.pp2-banner__link::after { z-index: 3; }

/* 3 étapes */
.pp2-steps { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 860px) { .pp2-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pp2-steps li { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 1.4rem 1.3rem 1.3rem;
  box-shadow: var(--shadow); display: grid; gap: .45rem; justify-items: start; transition: transform .3s ease, box-shadow .3s ease; }
.pp2-steps li:hover { transform: translateY(-5px); box-shadow: 0 26px 44px -26px rgba(10,31,68,.55); }
.pp2-step-icon { width: 76px; height: 76px; filter: drop-shadow(0 10px 12px rgba(10,31,68,.25)); animation: icon-float 5s ease-in-out infinite; }
.pp2-steps li:nth-child(2) .pp2-step-icon { animation-delay: -1.6s; }
.pp2-steps li:nth-child(3) .pp2-step-icon { animation-delay: -3.2s; }
.pp2-steps b { position: absolute; top: 1rem; right: 1rem; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bordeaux); color: #fff; font-family: var(--display); }
.pp2-steps strong { font-family: var(--display); font-size: 1.1rem; }
.pp2-steps em { font-style: normal; background: var(--gold-soft); color: var(--bordeaux-ink); padding: 0 .35rem; border-radius: 6px; }
.pp2-steps span { color: var(--muted); }
.btn-pulse-blue { position: relative; min-height: 54px; padding: .85rem 1.8rem; font-size: 1.02rem; }
.btn-pulse-blue::before { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid var(--bordeaux); opacity: 0;
  animation: pulse-ring 2.4s ease-out infinite; pointer-events: none; }

/* Tuiles « pourquoi s'inscrire » sur fond image */
.pp2-tile--gifts::before { background-image: url("../img/pp/tile-bonus.webp"); }
.pp2-tile--live::before { background-image: url("../img/pp/tile-live.webp"); }
.pp2-tile--sports::before { background-image: url("../img/pp/tile-sports.webp"); }
.pp2-tile--mobile::before { background-image: url("../img/pp/tile-mobile.webp"); }
/* visuels nets : sujet en haut, texte sur le tiers bas sombre */
.pp .h-tile { min-height: 420px; }
@media (min-width: 1100px) { .pp .h-tile { min-height: 400px; } }
.pp .h-tile::before { background-position: center 12%; }
.pp .h-tile::after {
  background: linear-gradient(0deg, rgba(5,13,31,.97) 0%, rgba(5,13,31,.86) 28%, rgba(5,13,31,.2) 58%, rgba(5,13,31,0) 100%); }
.pp .h-tile__icon { width: 58px; height: 58px; margin-bottom: 0; }
.pp .h-tile h3 { margin-top: .7rem; }

/* Galerie */
.pp2-gallery { display: grid; gap: .8rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .pp2-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pp2-gallery__item { display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.pp2-gallery__item picture, .pp2-gallery__item .visual { display: block; width: 100%; height: 100%; }
.pp2-gallery__item .visual { object-fit: cover; border-radius: 0; box-shadow: none; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.pp2-gallery__item:hover .code-media, .pp2-gallery__item:hover > .visual { transform: scale(1.07); }
.pp2-gallery__item .code-media { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.pp2-gallery__item .code-media .visual { transition: none; }
.pp2-gallery__item--wide, .pp2-gallery__item--full { grid-column: 1 / -1; aspect-ratio: auto; background: #0b1c3d; }
.pp2-gallery__item--wide .visual, .pp2-gallery__item--full .visual { height: auto; object-fit: contain; }
@media (min-width: 900px) { .pp2-gallery__item--wide { grid-column: span 2; display: flex; align-items: center; } }

/* Partage + FAQ */
.pp2-share { max-width: 820px; }
.pp2-faq { max-width: 820px; display: grid; gap: .7rem; }
.pp2-faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 0 1.1rem; box-shadow: var(--shadow); }
.pp2-faq summary { cursor: pointer; list-style: none; padding: 1rem 2.4rem 1rem 0; font-weight: 800; position: relative; }
.pp2-faq summary::-webkit-details-marker { display: none; }
.pp2-faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bordeaux); color: #fff; font-weight: 900; transition: transform .3s ease; }
.pp2-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.pp2-faq details p { margin: 0 0 1rem; color: var(--muted); }
.pp .h-final::before { background: url("../img/home/cta.webp") center 60% / cover no-repeat; filter: saturate(1.08); }
.pp .h-final::after {
  background: radial-gradient(ellipse 46% 62% at 50% 48%, rgba(5,13,31,.9), rgba(5,13,31,.5) 70%, rgba(5,13,31,.2) 100%),
              linear-gradient(0deg, rgba(5,13,31,.9) 0%, rgba(5,13,31,0) 30%); }

/* Barre fixe mobile : code + copier + s'inscrire, toujours à portée de doigt */
.pp2-sticky { display: none; }
@media (max-width: 759px) {
  .pp { padding-bottom: 80px; }
  .pp2-sticky { position: fixed; z-index: 40; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center;
    gap: .5rem; background: rgba(7,26,61,.96); color: #fff; border: 1px solid rgba(255,255,255,.15); border-radius: 18px;
    padding: .55rem .6rem .55rem .9rem; box-shadow: 0 18px 40px -12px rgba(0,0,0,.65); backdrop-filter: blur(10px);
    animation: sticky-in .6s cubic-bezier(.2,.7,.2,1) .8s both; }
  .pp2-sticky__code { display: grid; line-height: 1.1; min-width: 0; flex: 1; }
  .pp2-sticky__code small { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.65); font-weight: 800; }
  .pp2-sticky__code strong { font-family: var(--display); font-size: 1.25rem; color: #ffd83a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pp2-sticky .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
}
@keyframes sticky-in { from { transform: translateY(120%); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .pp2-avatar::before, .pp2-code__glow, .pp2-banner__link::after, .pp2-step-icon, .pp2-sticky { animation: none !important; }
}

/* =====================================================================
   « Pourquoi utiliser mon code » : offre de bienvenue + avantages + preuve sociale réelle
   ===================================================================== */
.pp2-hl { color: #ffd21f; text-shadow: 0 0 22px rgba(255, 210, 31, .45); white-space: nowrap; }

.pp2-offer { position: relative; isolation: isolate; display: grid; gap: 1.2rem; align-items: center; margin: 0 auto 1.4rem;
  max-width: 980px; padding: clamp(1.1rem, 3vw, 1.8rem); border-radius: 24px;
  background: linear-gradient(140deg, rgba(16, 36, 80, .96), rgba(6, 15, 36, .96)); border: 1.5px solid rgba(255, 210, 31, .65);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
@media (min-width: 860px) { .pp2-offer { grid-template-columns: auto minmax(0, 1fr) auto; } }
.pp2-offer__glow { position: absolute; inset: -2px; z-index: -1; border-radius: 26px; filter: blur(18px); opacity: .35;
  background: linear-gradient(120deg, #ffd21f, #1f8bff, #1173ea, #ffd21f); background-size: 300% 300%;
  animation: glow 6s ease-in-out infinite; }
.pp2-offer__icon { width: 84px; height: 84px; justify-self: center; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .5));
  animation: icon-float 4.5s ease-in-out infinite; }
.pp2-offer__icon .icon3d { width: 100%; height: 100%; }
.pp2-offer__text { display: grid; gap: .35rem; justify-items: start; min-width: 0; }
.pp2-offer__text strong { font-family: var(--display); font-size: clamp(1.35rem, 3.6vw, 2rem); line-height: 1.15; color: #fff; }
.pp2-offer__text p { margin: 0; color: #c9dbf7; line-height: 1.55; }
.pp2-offer__cta { display: grid; gap: .55rem; justify-items: stretch; min-width: 220px; }
.pp2-offer__code { display: grid; justify-items: center; padding: .55rem .9rem; border-radius: 14px;
  border: 1.5px dashed rgba(255, 210, 31, .7); background: rgba(255, 210, 31, .07); }
.pp2-offer__code small { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: #9fc2f5; }
.pp2-offer__code b { font-family: var(--display); font-size: clamp(1.5rem, 4vw, 2rem); letter-spacing: .06em; color: #ffd21f;
  text-shadow: 0 0 18px rgba(255, 210, 31, .5); animation: code-pulse 2.4s ease-in-out infinite; }
@keyframes code-pulse { 50% { text-shadow: 0 0 30px rgba(255, 210, 31, .85); transform: scale(1.04); } }
@media (max-width: 859px) { .pp2-offer { text-align: center; } .pp2-offer__text { justify-items: center; } .pp2-offer__cta { min-width: 0; } }

.pp2-proof { display: flex; align-items: center; justify-content: center; gap: .55rem; margin: 0 auto 1.6rem; color: #d3e2fb;
  font-size: .95rem; text-align: center; }
.pp2-proof strong { color: #fff; font-family: var(--display); }
.pp2-proof__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #2bd46d; box-shadow: 0 0 0 0 rgba(43, 212, 109, .7);
  animation: live-dot 1.8s ease-out infinite; }
@keyframes live-dot { 70% { box-shadow: 0 0 0 10px rgba(43, 212, 109, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 212, 109, 0); } }

.pp2-why__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .pp2-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .pp2-why__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pp2-why__grid li { position: relative; overflow: hidden; display: grid; gap: .4rem; align-content: start; padding: 1.3rem 1.2rem;
  border-radius: 20px; background: linear-gradient(160deg, rgba(20, 44, 96, .7), rgba(8, 20, 46, .85));
  border: 1px solid rgba(140, 180, 255, .2); transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.pp2-why__grid li::after { content: ""; position: absolute; top: 0; left: -70%; width: 45%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .08), transparent); transform: skewX(-20deg); transition: left .7s ease; }
.pp2-why__grid li:hover { transform: translateY(-5px); border-color: rgba(255, 210, 31, .55); box-shadow: 0 24px 44px -26px rgba(31, 139, 255, .6); }
.pp2-why__grid li:hover::after { left: 130%; }
.pp2-why__icon { width: 58px; height: 58px; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .45)); animation: icon-float 5s ease-in-out infinite; }
.pp2-why__grid li:nth-child(2n) .pp2-why__icon { animation-delay: -1.6s; }
.pp2-why__grid li:nth-child(3n) .pp2-why__icon { animation-delay: -3.2s; }
.pp2-why__grid h3 { margin: .3rem 0 0; color: #fff; font-size: 1.12rem; }
.pp2-why__grid p { margin: 0; color: #c9dbf7; line-height: 1.55; font-size: .95rem; }
.pp2-why__grid p strong { color: #ffd21f; }
.pp2-why__note { margin: 1.2rem 0 0; text-align: center; font-size: .78rem; color: rgba(211, 226, 251, .65); }
@media (prefers-reduced-motion: reduce) {
  .pp2-offer__glow, .pp2-offer__icon, .pp2-offer__code b, .pp2-proof__dot, .pp2-why__icon { animation: none !important; }
}

/* Chiffre fort de l'offre (ex. « 200 % ») : très grand, or, compteur animé et reflet */
.pp2-offer__big { position: relative; display: flex; align-items: baseline; justify-content: center; gap: .15em; line-height: .9;
  font-family: var(--display); font-weight: 900; padding: 0 .2rem; min-width: 0; }
.pp2-offer__num, .pp2-offer__suffix {
  background: linear-gradient(180deg, #fff6c8 0%, #ffd21f 45%, #f0a800 75%, #ffe16b 100%); background-size: 100% 200%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 0 rgba(120, 70, 0, .55)) drop-shadow(0 0 22px rgba(255, 200, 0, .45));
  animation: big-shine 3.2s ease-in-out infinite; }
.pp2-offer__num { font-size: clamp(3.6rem, 11vw, 6rem); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pp2-offer__suffix { font-size: clamp(1.6rem, 4.6vw, 2.6rem); text-transform: uppercase; letter-spacing: .02em; }
@keyframes big-shine { 50% { background-position: 0 100%; } }
@media (prefers-reduced-motion: reduce) { .pp2-offer__num, .pp2-offer__suffix { animation: none; } }

/* « Encore plus de bonus » : cartes promotions animées */
.pp2-promos__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 680px) { .pp2-promos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .pp2-promos__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pp2-promo { position: relative; overflow: hidden; display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem 1.2rem 1.2rem;
  border-radius: 20px; background: radial-gradient(120% 140% at 0% 0%, rgba(255, 210, 31, .12), transparent 55%),
  linear-gradient(160deg, rgba(20, 44, 96, .75), rgba(8, 20, 46, .9)); border: 1px solid rgba(255, 210, 31, .25);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.pp2-promo:hover { transform: translateY(-5px) rotate(-.4deg); border-color: rgba(255, 210, 31, .7);
  box-shadow: 0 26px 46px -26px rgba(255, 196, 0, .45); }
.pp2-promo::after { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .09), transparent); transform: skewX(-20deg);
  animation: promo-sweep 6s ease-in-out infinite; }
.pp2-promo:nth-child(2n)::after { animation-delay: -2s; }
.pp2-promo:nth-child(3n)::after { animation-delay: -4s; }
@keyframes promo-sweep { 0%, 60% { left: -80%; } 100% { left: 140%; } }
.pp2-promo__icon { flex: none; width: 56px; height: 56px; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .45));
  animation: icon-float 5s ease-in-out infinite; }
.pp2-promo:nth-child(2n) .pp2-promo__icon { animation-delay: -1.7s; }
.pp2-promo h3 { margin: 0 0 .3rem; color: #fff; font-size: 1.08rem; padding-right: 3.6rem; }
.pp2-promo p { margin: 0; color: #c9dbf7; line-height: 1.55; font-size: .94rem; }
.pp2-promo__ribbon { position: absolute; top: .85rem; right: -.1rem; padding: .18rem .7rem .18rem .8rem; border-radius: 999px 0 0 999px;
  background: linear-gradient(180deg, #ffe45c, #ffc400); color: #2b1a00; font-size: .66rem; font-weight: 900;
  letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 6px 14px -6px rgba(255, 196, 0, .8); }
.pp2-promos__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 1.6rem; }
@media (max-width: 480px) { .pp2-promos__cta .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .pp2-promo::after, .pp2-promo__icon { animation: none !important; } }

/* ===== Page partenaire : image d'ouverture (mobile et tablette) ===== */
.pp2-hero__visual { display: none; }
@media (max-width: 899px) {
  .pp2-hero__visual { display: block; grid-area: visual; margin: 0 -2px; border-radius: 20px; overflow: hidden;
    aspect-ratio: 1672 / 941; border: 1px solid rgba(140, 180, 255, .25); box-shadow: 0 24px 50px -26px rgba(0, 0, 0, .85); }
  .pp2-hero__visual .code-media { height: 100%; }
  .pp2-hero__inner { grid-template-areas: "visual" "id" "bio" "code"; padding-top: 18px; }
  .pp2-hero__bg::before { opacity: .35; }  /* le visuel net est au-dessus : le fond reste discret */
}

/* ===== Annuaire « Nos partenaires » : bandeau visuel ===== */
.dir-hero { position: relative; isolation: isolate; overflow: hidden; border-radius: 22px; margin-bottom: 1.4rem;
  padding: clamp(1.4rem, 4vw, 2.6rem); min-height: 220px; display: grid; align-content: end;
  border: 1px solid rgba(140, 180, 255, .22); }
.dir-hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("../img/home/programme-2.webp") center 30% / cover no-repeat; }
.dir-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(5, 13, 31, .95) 0%, rgba(5, 13, 31, .7) 50%, rgba(5, 13, 31, .2) 100%),
              linear-gradient(0deg, rgba(5, 13, 31, .85), transparent 60%); }
.dir-hero h1 { color: #fff; margin: .3rem 0 .4rem; text-shadow: 0 4px 24px rgba(0, 0, 0, .6); }
.dir-hero p { color: #d3e2fb; max-width: 40em; margin: 0; }

/* ===== Page partenaire : HERO plein écran consacré aux pronostics ===== */
.ph { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #000c33;
  min-height: calc(100svh - var(--hdr, 64px)); display: grid; align-items: end; }
.ph__bg, .ph__bg img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.ph__bg img { object-fit: cover; object-position: 62% 0; animation: ph-zoom 18s ease-out both; }
@keyframes ph-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.ph__shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 12, 51, .05) 0%, rgba(0, 12, 51, .15) 30%, rgba(0, 12, 51, .82) 52%, #000c33 72%); }
.ph .ph__inner { position: relative; display: grid; gap: .75rem; padding-top: 18vh; padding-bottom: 104px; max-width: 640px; }
.ph__kicker { justify-self: start; display: inline-flex; align-items: center; gap: .5rem; font-size: .74rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: #ffd21f; background: rgba(0, 12, 51, .6); border: 1px solid rgba(255, 210, 31, .4);
  border-radius: 999px; padding: .35rem .8rem; backdrop-filter: blur(6px); }
.ph__live { width: 8px; height: 8px; border-radius: 50%; background: #2ee66f; box-shadow: 0 0 0 0 rgba(46, 230, 111, .7); animation: ph-pulse 1.6s infinite; }
@keyframes ph-pulse { 70% { box-shadow: 0 0 0 9px rgba(46, 230, 111, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 230, 111, 0); } }
.ph h1 { margin: 0; color: #fff; font-size: clamp(2.4rem, 10.5vw, 4.6rem); line-height: .98; letter-spacing: -.02em;
  text-shadow: 0 6px 30px rgba(0, 0, 0, .55); }
.ph__hl { background: linear-gradient(180deg, #ffe680, #ffc400); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ph__lead { margin: 0; color: #d6e4ff; font-size: 1.02rem; }
.ph__lead strong { color: #fff; }
.ph__star { display: grid; gap: .35rem; text-decoration: none; color: #fff; padding: .85rem 1rem; border-radius: 18px;
  background: linear-gradient(135deg, rgba(31, 139, 255, .28), rgba(10, 26, 60, .75)); border: 1px solid rgba(140, 180, 255, .35);
  backdrop-filter: blur(10px); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .8); transition: transform .2s ease, border-color .2s ease; }
.ph__star:hover { transform: translateY(-2px); border-color: rgba(255, 210, 31, .6); color: #fff; }
.ph__star-top { display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: center; font-size: .78rem; color: #b9cdf2; }
.ph__badge { font-weight: 800; color: #1a1300; background: linear-gradient(180deg, #ffe066, #ffbf00); border-radius: 999px; padding: .12rem .55rem; }
.ph__match { font-size: 1.08rem; line-height: 1.25; }
.ph__match em { font-style: normal; color: #8fb3ff; font-weight: 700; padding: 0 .2rem; }
.ph__pick { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; font-weight: 800; color: #ffd21f; }
.ph__pick b { font-size: 1.25rem; color: #fff; }
.ph__bar { display: block; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.ph__bar .prono-card__fill { display: block; height: 100%; }
.ph__coupon { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center; text-decoration: none; color: #fff;
  padding: .65rem .9rem; border-radius: 14px; background: rgba(10, 26, 60, .7); border: 1px dashed rgba(255, 210, 31, .6); font-size: .88rem;
  white-space: nowrap; backdrop-filter: blur(8px); }
.ph__coupon span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; color: #d6e4ff; }
.ph__coupon span:first-child { font-weight: 800; color: #ffd21f; }
.ph__coupon:hover { background: rgba(255, 210, 31, .18); color: #fff; }
.ph__cta { display: grid; grid-template-columns: 1fr; gap: .6rem; margin-top: .2rem; }
.ph__go { min-height: 56px; font-size: 1.05rem; }
.ph__code { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem; min-height: 52px; cursor: pointer;
  border-radius: 14px; padding: .4rem .5rem .4rem 1rem; color: #fff; text-align: left; font: inherit;
  background: rgba(0, 12, 51, .55); border: 1.5px solid rgba(255, 210, 31, .7); backdrop-filter: blur(6px); }
.ph__code small { font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #b9cdf2; }
.ph__code b { font-size: 1.35rem; letter-spacing: .04em; color: #ffd21f; }
.ph__code span { font-weight: 800; font-size: .85rem; color: #1a1300; background: linear-gradient(180deg, #ffe066, #ffbf00); border-radius: 10px; padding: .45rem .8rem; }
.ph__code[data-copied="1"] span { background: #2ee66f; }
.ph__note { margin: 0; font-size: .74rem; color: rgba(214, 228, 255, .7); }
.ph__scroll { position: absolute; left: 50%; bottom: 16px; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, .55); }
.ph__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff;
  animation: ph-wheel 1.6s ease-in-out infinite; }
@keyframes ph-wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (min-width: 560px) { .ph__cta { grid-template-columns: auto minmax(0, 1fr); } }
/* mobile : la barre collante du bas montre déjà le code -> pas de doublon, et rien de caché derrière elle */
@media (max-width: 899px) { .ph__code, .ph__scroll { display: none; } }
@media (min-width: 900px) {
  .ph { align-items: center; }
  .ph__bg img { object-position: center; }
  .ph__shade { background: linear-gradient(90deg, rgba(0, 12, 51, .94) 0%, rgba(0, 12, 51, .78) 36%, rgba(0, 12, 51, .1) 64%),
                           linear-gradient(0deg, rgba(0, 12, 51, .7), transparent 35%); }
  .ph .ph__inner { padding-top: 48px; padding-bottom: 88px; max-width: 560px; margin-left: max(16px, calc((100vw - 1180px) / 2)); }
}
@media (prefers-reduced-motion: reduce) { .ph__bg img, .ph__live, .ph__scroll span { animation: none; } }
/* carte du code, désormais sous les pronostics */
.pp2-code-sec { padding-top: 0; }
.pp2-code-wrap { max-width: 640px; }
.pp2-code-wrap .pp2-code { animation: none; }

/* ===== Coupons premium (accès vérifié) ===== */
.pb-pill--lock { color: #1a1300 !important; background: linear-gradient(180deg, #ffe066, #ffbf00) !important; border-color: transparent !important;
  text-decoration: none; font-weight: 800; white-space: nowrap; }
.pb-pill--premium { box-shadow: 0 0 0 1.5px rgba(255, 210, 31, .7); }
.pb-bar--lock { background: repeating-linear-gradient(45deg, rgba(255, 210, 31, .35) 0 6px, rgba(255, 210, 31, .12) 6px 12px); }
.pb-coupon--locked { position: relative; border-color: rgba(255, 210, 31, .45) !important; }
.pb-lock-note { margin: 0 0 .5rem; font-size: .85rem; color: #ffe39a; }
.pb-list--locked .pb-lock { font-size: .9rem; }
.pb-blur { filter: blur(5px); user-select: none; }
.pb-unlocked { margin: 0 0 .4rem; font-size: .82rem; font-weight: 800; color: #2ee66f; }
.pp2-premium__wrap { max-width: 720px; }
.pp2-premium__card { position: relative; display: grid; gap: 1rem; padding: clamp(1.1rem, 4vw, 1.8rem); border-radius: 24px; color: #fff;
  background: linear-gradient(160deg, rgba(255, 196, 0, .14), rgba(10, 26, 60, .85) 45%); border: 1.5px solid rgba(255, 210, 31, .5);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .9); }
.pp2-premium__card.is-ok { grid-template-columns: auto 1fr; align-items: start; background: linear-gradient(160deg, rgba(46, 230, 111, .14), rgba(10, 26, 60, .85) 45%);
  border-color: rgba(46, 230, 111, .5); }
.pp2-premium__icon { font-size: 2rem; }
.pp2-premium__card h2 { color: #fff; margin: .35rem 0 .4rem; }
.pp2-premium__card p { color: #d6e4ff; margin: 0; }
.pp2-premium__steps { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; color: #d6e4ff; }
.pp2-premium__steps b { color: #fff; }
.pp2-premium__steps a { color: #ffd21f; }
.pp2-premium__form { display: grid; gap: .45rem; }
.pp2-premium__form label { font-weight: 800; font-size: .9rem; color: #fff; }
.pp2-premium__form label small { font-weight: 600; color: #b9cdf2; }
.pp2-premium__form input[type="text"], .pp2-premium__form input:not([type]), .pp2-premium__form input[type="tel"] {
  min-height: 52px; border-radius: 12px; padding: .6rem .9rem; font-size: 1.1rem; color: #fff; background: rgba(0, 12, 51, .7);
  border: 1.5px solid rgba(140, 180, 255, .4); }
.pp2-premium__form input:focus { outline: 2px solid #ffd21f; outline-offset: 1px; }
.pp2-premium__consent { display: grid !important; grid-template-columns: auto 1fr; gap: .55rem; align-items: start; font-weight: 600 !important;
  font-size: .8rem !important; color: #b9cdf2 !important; margin: .3rem 0 .4rem; }
.pp2-premium__consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: #ffd21f; }
.pp2-premium__msg { padding: .75rem .9rem; border-radius: 12px; font-weight: 700; font-size: .92rem; }
.pp2-premium__msg.is-error { background: rgba(255, 80, 80, .14); border: 1px solid rgba(255, 120, 120, .5); color: #ffd3d3 !important; }
.pp2-premium__msg.is-wait { background: rgba(31, 139, 255, .16); border: 1px solid rgba(140, 180, 255, .5); color: #e3edff !important; }
.ph__coupon--lock { border-style: solid; border-color: rgba(255, 210, 31, .75); background: linear-gradient(90deg, rgba(255, 196, 0, .2), rgba(10, 26, 60, .75)); }

/* ===== Flyer bonus (avant les pronostics) ===== */
.pp-flyer { padding: clamp(22px, 4vw, 44px) 0 0; }
.pp-flyer__card { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 0; border-radius: 26px; color: #fff;
  background: radial-gradient(120% 90% at 85% 0%, #1f5fd1 0%, #0b2a6b 38%, #061535 72%);
  border: 1.5px solid rgba(255, 210, 31, .55); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .95), 0 0 50px -18px rgba(255, 196, 0, .45); }
.pp-flyer__rays { position: absolute; z-index: -1; width: 900px; height: 900px; right: -320px; top: -420px; opacity: .22;
  background: repeating-conic-gradient(from 0deg, rgba(255, 210, 31, .9) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 62%); mask-image: radial-gradient(circle, #000 0%, transparent 62%);
  animation: fy-spin 40s linear infinite; }
@keyframes fy-spin { to { transform: rotate(360deg); } }
.pp-flyer__visual { position: relative; min-height: 240px; }
.pp-flyer__visual .h-tile__media, .pp-flyer__visual > * { position: absolute; inset: 0; }
.pp-flyer__visual img, .pp-flyer__visual svg { width: 100%; height: 100%; object-fit: cover; }
.pp-flyer__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #061535 0%, rgba(6, 21, 53, 0) 45%); }
.pp-flyer__body { position: relative; display: grid; gap: .75rem; padding: 0 clamp(18px, 4vw, 34px) clamp(20px, 4vw, 32px); margin-top: -70px; }
.pp-flyer__tag { justify-self: start; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #1a1300;
  background: linear-gradient(180deg, #ffe680, #ffc400); border-radius: 999px; padding: .32rem .8rem; box-shadow: 0 8px 20px -8px rgba(255, 196, 0, .8); }
.pp-flyer__big { margin: 0; display: flex; align-items: baseline; gap: .35rem; line-height: .9; }
.pp-flyer__num { font-family: var(--display); font-weight: 900; font-size: clamp(4.2rem, 19vw, 7.2rem); letter-spacing: -.03em;
  background: linear-gradient(180deg, #fff6c7 0%, #ffd21f 45%, #ff9f00 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 24px rgba(255, 170, 0, .45)); }
.pp-flyer__suffix { font-family: var(--display); font-weight: 900; font-size: clamp(1.6rem, 6vw, 2.4rem); color: #ffd21f; text-transform: uppercase; }
.pp-flyer__title { margin: 0; color: #fff; font-size: clamp(1.35rem, 4.6vw, 1.9rem); line-height: 1.15; }
.pp-flyer__detail { margin: 0; color: #d6e4ff; }
.pp-flyer__perks { list-style: none; margin: .2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.pp-flyer__perks li { display: flex; align-items: center; gap: .5rem; padding: .55rem .6rem; border-radius: 14px; font-weight: 800; font-size: .86rem;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(140, 180, 255, .25); min-width: 0; }
.pp-flyer__perks span { min-width: 0; overflow-wrap: anywhere; }
.pp-flyer__icon { width: 32px; height: 32px; flex: none; }
.pp-flyer__ticket { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .6rem; margin-top: .2rem;
  padding: .7rem .7rem .7rem 1.1rem; border-radius: 16px; background: linear-gradient(180deg, #fff3b0, #ffd21f); color: #1a1300; overflow: hidden; }
.pp-flyer__ticket::before { content: ""; position: absolute; inset: 0; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent); animation: fy-shine 3.2s ease-in-out infinite; }
@keyframes fy-shine { 60%, 100% { transform: translateX(160%) skewX(-20deg); } }
.pp-flyer__code { position: relative; display: grid; line-height: 1.05; }
.pp-flyer__code small { font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #6b4d00; }
.pp-flyer__code b { font-family: var(--display); font-size: clamp(1.7rem, 7vw, 2.3rem); letter-spacing: .05em; }
.pp-flyer__copy { position: relative; min-height: 46px; padding: 0 1.1rem; border-radius: 12px; border: 0; cursor: pointer; font-weight: 900;
  color: #fff; background: #0b2a6b; }
.pp-flyer__copy[data-copied="1"] { background: #1f9d55; }
.pp-flyer__go { min-height: 56px; font-size: 1.02rem; }
.pp-flyer__terms { margin: 0; font-size: .74rem; color: rgba(214, 228, 255, .72); }
@media (min-width: 860px) {
  .pp-flyer__card { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: stretch; }
  .pp-flyer__visual { min-height: 520px; }
  .pp-flyer__visual::after { background: linear-gradient(90deg, rgba(6, 21, 53, 0) 55%, #061535 100%); }
  .pp-flyer__body { margin-top: 0; align-content: center; padding: 2.2rem 2.4rem 2.2rem .6rem; }
}
@media (prefers-reduced-motion: reduce) { .pp-flyer__rays, .pp-flyer__ticket::before { animation: none; } }

/* ===== Personnalisation par le partenaire ===== */
.ph__bg--custom img { object-position: center; }
.ph__meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.ph__by { display: inline-flex; align-items: center; gap: .45rem; font-weight: 800; font-size: .86rem; color: #fff;
  background: rgba(0, 12, 51, .82); border: 1px solid rgba(140, 180, 255, .35); border-radius: 999px; padding: .2rem .75rem .2rem .2rem; }
.ph__by img, .ph__by i { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.ph__by i { display: grid; place-items: center; font-style: normal; font-size: .7rem; background: var(--pp-accent, #1f8bff); }
.ph__msg { margin: 0; padding: .65rem .9rem; border-radius: 14px; font-weight: 800; color: #1a1300; line-height: 1.35;
  background: linear-gradient(180deg, #ffe680, #ffc400); box-shadow: 0 12px 30px -14px rgba(255, 196, 0, .8);
  animation: ph-msg 2.6s ease-in-out infinite; }
@keyframes ph-msg { 50% { transform: translateY(-3px); } }
.pp-community__card { display: grid; gap: 1.2rem; align-items: center; padding: clamp(1.2rem, 4vw, 2rem); border-radius: 24px; color: #fff;
  background: linear-gradient(150deg, rgba(31, 139, 255, .22), rgba(6, 21, 53, .95) 60%); border: 1px solid rgba(140, 180, 255, .3); }
@media (min-width: 700px) { .pp-community__card { grid-template-columns: auto 1fr; } }
.pp-community__avatar img, .pp-community__avatar span { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: grid;
  place-items: center; font-weight: 900; font-size: 1.6rem; background: var(--pp-accent, #1f8bff); border: 3px solid rgba(255, 255, 255, .8); }
.pp-community__body h2 { color: #fff; margin: .3rem 0 .4rem; }
.pp-community__body p { color: #d6e4ff; margin: 0 0 .8rem; }
.pp-community__links { display: flex; flex-wrap: wrap; gap: .5rem; }
.pp-social { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 999px; font-weight: 800;
  text-decoration: none; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); }
.pp-social--whatsapp { background: #1f9d55; border-color: #1f9d55; } .pp-social--telegram { background: #229ed9; border-color: #229ed9; }
.pp-social--tiktok { background: #111; } .pp-social--facebook { background: #1877f2; border-color: #1877f2; }
.pp-social--instagram { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); border-color: transparent; }
.pp-social--youtube { background: #e62117; border-color: #e62117; }
.pp-social:hover { color: #fff; filter: brightness(1.1); }
/* ===== Palette choisie par le partenaire : 1 lot = 3 couleurs (principale, éclat, fond) =====
   Variables générées depuis bori/services/space.py (PALETTES) — ne pas modifier à la main, voir test_space. */
body.pp { --pp-accent: #1f8bff; --pp-accent-2: #ffd21f; --pp-bg: #050d1f; --pp-on-accent: #ffffff; }
/* PALETTES:BEGIN */
body.pp[data-accent="blue"] { --pp-accent: #1f8bff; --pp-accent-2: #ffd21f; --pp-bg: #050d1f; --pp-on-accent: #ffffff; }
body.pp[data-accent="gold"] { --pp-accent: #ffc400; --pp-accent-2: #fff1a1; --pp-bg: #0e0a02; --pp-on-accent: #0b0f1a; }
body.pp[data-accent="green"] { --pp-accent: #22c55e; --pp-accent-2: #ffd21f; --pp-bg: #03140b; --pp-on-accent: #0b0f1a; }
body.pp[data-accent="red"] { --pp-accent: #ef4444; --pp-accent-2: #ffb020; --pp-bg: #160506; --pp-on-accent: #ffffff; }
body.pp[data-accent="violet"] { --pp-accent: #8b5cf6; --pp-accent-2: #22d3ee; --pp-bg: #0c0720; --pp-on-accent: #ffffff; }
body.pp[data-accent="ocean"] { --pp-accent: #06b6d4; --pp-accent-2: #a3e635; --pp-bg: #02141a; --pp-on-accent: #0b0f1a; }
body.pp[data-accent="sunset"] { --pp-accent: #f97316; --pp-accent-2: #fde047; --pp-bg: #150903; --pp-on-accent: #0b0f1a; }
body.pp[data-accent="royal"] { --pp-accent: #4f6bff; --pp-accent-2: #e2e8f0; --pp-bg: #070b24; --pp-on-accent: #ffffff; }
body.pp[data-accent="rose"] { --pp-accent: #ec4899; --pp-accent-2: #fbbf24; --pp-bg: #170510; --pp-on-accent: #ffffff; }
body.pp[data-accent="carbon"] { --pp-accent: #a3e635; --pp-accent-2: #f8fafc; --pp-bg: #0a0b0a; --pp-on-accent: #0b0f1a; }
/* PALETTES:END */
/* « Nuit 1xBet » (blue) garde le rendu d'origine ; les autres palettes recolorent la page */
body.pp:not([data-accent="blue"]) {
  background:
    radial-gradient(900px 600px at 85% -5%, color-mix(in srgb, var(--pp-accent) 18%, transparent), transparent 60%),
    radial-gradient(700px 500px at -10% 35%, color-mix(in srgb, var(--pp-accent) 11%, transparent), transparent 60%),
    radial-gradient(600px 400px at 110% 75%, color-mix(in srgb, var(--pp-accent-2) 8%, transparent), transparent 60%),
    var(--pp-bg);
  background-attachment: fixed;
}
body.pp:not([data-accent="blue"]) .site-header { background: color-mix(in srgb, var(--pp-bg) 82%, transparent); }
body.pp:not([data-accent="blue"]) .section.alt { background: radial-gradient(900px 320px at 50% 0, color-mix(in srgb, var(--pp-accent) 14%, transparent), transparent 70%),
  color-mix(in srgb, var(--pp-bg) 93%, #ffffff); }
body.pp:not([data-accent="blue"]) .section.dark, body.pp:not([data-accent="blue"]) .site-footer { background: color-mix(in srgb, var(--pp-bg) 65%, #000000); }
body.pp:not([data-accent="blue"]) .btn-primary { background: var(--pp-accent); border-color: var(--pp-accent); color: var(--pp-on-accent);
  box-shadow: 0 10px 28px -10px color-mix(in srgb, var(--pp-accent) 80%, transparent); }
body.pp:not([data-accent="blue"]) .btn-primary:hover { background: color-mix(in srgb, var(--pp-accent) 85%, #ffffff); color: var(--pp-on-accent); }
body.pp:not([data-accent="blue"]) .kicker { color: var(--pp-accent); }
body.pp:not([data-accent="blue"]) .kicker::before, body.pp:not([data-accent="blue"]) .kicker::after { background: var(--pp-accent-2); box-shadow: 0 0 10px color-mix(in srgb, var(--pp-accent-2) 60%, transparent); }
body.pp:not([data-accent="blue"]) .pp2-hl { color: var(--pp-accent-2); text-shadow: 0 0 22px color-mix(in srgb, var(--pp-accent-2) 45%, transparent); }
body.pp:not([data-accent="blue"]) .pp-menu[open] summary { background: var(--pp-accent); color: var(--pp-on-accent); }
body.pp:not([data-accent="blue"]) .pp-menu__panel { background: color-mix(in srgb, var(--pp-bg) 80%, var(--pp-accent)); }
body.pp:not([data-accent="blue"]) .ph__star { border-color: var(--pp-accent); }
body.pp:not([data-accent="blue"]) .ph__bar .prono-card__fill, body.pp:not([data-accent="blue"]) .pb-bar .prono-card__fill, body.pp:not([data-accent="blue"]) .prono-card__fill { background: var(--pp-accent); }
body.pp:not([data-accent="blue"]) .pp-cpn { background: linear-gradient(160deg, color-mix(in srgb, var(--pp-accent) 24%, var(--pp-bg)), var(--pp-bg));
  border-color: color-mix(in srgb, var(--pp-accent) 45%, transparent); }
.pp-cpn__code { color: var(--pp-accent-2); border-color: color-mix(in srgb, var(--pp-accent-2) 70%, transparent); }
.pp-cpn__tag { color: var(--pp-accent-2); }

/* cadrage des images de la galerie sur téléphone (le sujet reste visible) */
@media (max-width: 899px) {
  .ph__bg--ballon img { object-position: 52% 40%; }
  .ph__bg--analyse img { object-position: 50% 30%; }
  .ph__bg--trophee img { object-position: 88% 60%; }
  .ph__bg--data img { object-position: 72% 45%; }
  .ph__bg--upload img { object-position: 50% 30%; }
}

/* =====================================================================
   MOTION DESIGN — pages partenaires
   Règles : uniquement transform / opacity (calculés par la carte graphique), rien n'est caché au départ,
   animations liées au défilement (animation-timeline) et boucles mises en pause hors écran (bori.js).
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* --- HERO : faisceaux de projecteurs + particules dorées --- */
  .ph::after { content: ""; position: absolute; inset: -20% -45%; z-index: -1; pointer-events: none; mix-blend-mode: screen;
    background: linear-gradient(105deg, transparent 40%, rgba(120, 180, 255, .20) 47%, transparent 54%),
                linear-gradient(72deg, transparent 56%, rgba(255, 210, 31, .14) 62%, transparent 68%);
    animation: ph-sweep 9s ease-in-out infinite alternate; }
  @keyframes ph-sweep { from { transform: translate3d(-12%, 0, 0) rotate(-2deg); } to { transform: translate3d(12%, 0, 0) rotate(2deg); } }
  .ph__shade::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 320px); pointer-events: none; opacity: .75;
    background-image:
      radial-gradient(2px 2px at 12% 18%, rgba(255, 214, 90, .95), transparent 70%),
      radial-gradient(1.5px 1.5px at 38% 62%, rgba(255, 255, 255, .8), transparent 70%),
      radial-gradient(2.5px 2.5px at 64% 34%, rgba(255, 196, 0, .9), transparent 70%),
      radial-gradient(1.5px 1.5px at 82% 76%, rgba(140, 190, 255, .9), transparent 70%),
      radial-gradient(2px 2px at 92% 12%, rgba(255, 214, 90, .8), transparent 70%);
    background-size: 320px 320px; animation: ph-rise 24s linear infinite; }
  @keyframes ph-rise { to { transform: translate3d(0, -320px, 0); } }
  /* bouton principal : halo qui « respire » */
  .ph__go { position: relative; isolation: isolate; }
  .ph__go::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid currentColor; opacity: 0;
    color: #7fc0ff; pointer-events: none; animation: ph-ring 2.6s ease-out infinite; }
  @keyframes ph-ring { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.12, 1.35); } }
  .ph__star { animation: ph-pop .8s cubic-bezier(.2, .9, .3, 1.2) .25s both; }
  .ph__coupon { animation: ph-pop .8s cubic-bezier(.2, .9, .3, 1.2) .4s both; }
  @keyframes ph-pop { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }

  /* --- micro-interactions --- */
  .pb-row:not(.pb-row--head) { transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease; }
  .pb-row:not(.pb-row--head):hover { transform: translateX(4px); background-color: rgba(31, 139, 255, .08); box-shadow: inset 3px 0 0 #ffd21f; }
  .pb-card, .pp2-why__grid li, .pp2-promos__grid li, .pp-community__card { transition: transform .3s ease, box-shadow .3s ease; }
  .pb-card:hover, .pp2-why__grid li:hover, .pp2-promos__grid li:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgba(0, 0, 0, .9); }
  .pp-social { transition: transform .2s ease, filter .2s ease; }
  .pp-social:hover { transform: translateY(-2px) scale(1.03); }
}

/* --- animations liées au défilement (Chrome, Edge, Brave, navigateurs Android) --- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .pp .section-head, .pp .pb-hero, .pp .pb-card, .pp .pp2-premium__card, .pp .pp2-code, .pp .pp-community__card,
    .pp .pp2-banner__box, .pp .pp2-faq details, .pp .pp2-share, .pp .h-final .container > * {
      animation: sd-rise linear backwards; animation-timeline: view(); animation-range: entry 0% entry 75%; }
    .pp .pp-flyer__card { animation: fy-in linear backwards; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    @keyframes fy-in { from { opacity: .35; transform: scale(.9) translateY(40px); } to { opacity: 1; transform: none; } }
    .pp .pb-row:not(.pb-row--head):nth-child(odd) { animation: sd-right linear backwards; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    .pp .pb-row:not(.pb-row--head):nth-child(even) { animation: sd-left linear backwards; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    .pp .pp2-why__grid li:nth-child(odd), .pp .pp2-promos__grid li:nth-child(odd), .pp .pp2-steps li:nth-child(odd), .pp .h-tile:nth-child(odd) {
      animation: sd-left linear backwards; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    .pp .pp2-why__grid li:nth-child(even), .pp .pp2-promos__grid li:nth-child(even), .pp .pp2-steps li:nth-child(even), .pp .h-tile:nth-child(even) {
      animation: sd-right linear backwards; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    .pp .pp2-gallery__item { animation: fy-in linear backwards; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    /* profondeur des photos */
    /* image ET calque du code bougent ensemble : le code reste calé sur l'affiche quel que soit l'écran */
    .pp .h-tile__media img, .pp .h-tile__media .code-layer, .pp .pp2-banner__img, .pp .pp-flyer__visual img, .pp .pp-flyer__visual .code-layer { animation: sd-parallax linear backwards; animation-timeline: view(); animation-range: cover; }
    .pp .pp2-why__icon, .pp .pp-flyer__icon, .pp .h-tile__icon { animation: sd-pop linear backwards; animation-timeline: view(); animation-range: entry 20% entry 100%; }
  }
}

/* ===== Portail caché : clavier PIN de l'espace partenaire ===== */
body.pin-open { overflow: hidden; }
.pin-portal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px;
  background: rgba(2, 8, 22, .82); animation: pin-fade .25s ease both; }
@keyframes pin-fade { from { opacity: 0; } }
.pin-portal__card { position: relative; width: min(100%, 360px); padding: 1.6rem 1.4rem 1.4rem; border-radius: 24px; text-align: center; color: #fff;
  background: linear-gradient(160deg, #123a86, #061535 70%); border: 1.5px solid rgba(255, 210, 31, .55);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .95), 0 0 60px -20px rgba(255, 196, 0, .5); animation: pin-up .35s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes pin-up { from { transform: translateY(24px) scale(.95); opacity: 0; } }
.pin-portal__close { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  font-size: 1.6rem; color: #b9cdf2; background: transparent; }
.pin-portal__lock { font-size: 2.2rem; margin: 0; }
.pin-portal__title { margin: .2rem 0 1rem; font-weight: 900; font-size: 1.2rem; letter-spacing: .02em; }
.pin-portal__dots { position: relative; display: flex; justify-content: center; gap: .7rem; padding: .4rem 0; cursor: text; }
.pin-portal__dots input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; }
.pin-portal__dots i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 210, 31, .7); transition: transform .15s ease, background .15s ease; }
.pin-portal__dots i.on { background: #ffd21f; transform: scale(1.15); box-shadow: 0 0 14px rgba(255, 210, 31, .7); }
.pin-portal__msg { min-height: 1.4em; margin: .8rem 0 0; font-weight: 700; color: #ffb4b4; font-size: .92rem; }
.pin-portal.is-busy .pin-portal__dots i { animation: pin-wait .9s ease-in-out infinite; }
.pin-portal.is-busy .pin-portal__dots i:nth-child(odd) { animation-delay: .15s; }
@keyframes pin-wait { 50% { opacity: .35; } }
.pin-portal.is-error .pin-portal__card { animation: pin-shake .4s ease; }
@keyframes pin-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.pin-portal.is-ok .pin-portal__dots i { background: #2ee66f; border-color: #2ee66f; }

/* ===== Coupons publiés par le partenaire ===== */
.pp-coupons__grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pp-cpn { position: relative; display: flex; flex-direction: column; gap: .45rem; padding: 1.1rem 1.1rem 1.2rem; border-radius: 20px; color: #fff;
  background: linear-gradient(160deg, #0d2a66, #071a44); border: 1px solid rgba(120, 170, 255, .28); box-shadow: 0 14px 30px rgba(0, 8, 30, .35); overflow: hidden; }
.pp-cpn::before { content: ""; position: absolute; left: -12px; top: 50%; width: 24px; height: 24px; border-radius: 50%; background: var(--pp-bg, #061535); }
.pp-cpn::after { content: ""; position: absolute; right: -12px; top: 50%; width: 24px; height: 24px; border-radius: 50%; background: var(--pp-bg, #061535); }
.pp-cpn--premium { border-color: rgba(255, 210, 31, .55); background: linear-gradient(160deg, #2a2208, #0b1a3e 60%); }
.pp-cpn__head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.pp-cpn__tag { font-size: .72rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: #ffd21f; }
.pp-cpn__odds { font-size: .85rem; color: #c9dbff; } .pp-cpn__odds b { color: #fff; font-size: 1.1rem; }
.pp-cpn h3 { margin: 0; font-size: 1.1rem; color: #fff; }
.pp-cpn__meta, .pp-cpn__note { margin: 0; font-size: .82rem; color: #b9cdf2; }
.pp-cpn__code { margin: .3rem 0; padding: .6rem; border-radius: 12px; border: 2px dashed rgba(255, 210, 31, .7); text-align: center;
  font: 900 1.45rem/1.1 ui-monospace, monospace; letter-spacing: .12em; color: #ffd21f; background: rgba(0, 0, 0, .25); overflow-wrap: anywhere; }
.pp-cpn__code.is-hidden { filter: blur(1.5px); color: #8aa3cf; }
.pp-cpn .btn { align-self: stretch; }

.pp-cpn__blur { filter: blur(4px); user-select: none; }

.pin-mask { -webkit-text-security: disc; }

/* ===== Bannière automatique (BORI MEDIA CENTER) ===== */
.pp-banner .container { display: grid; justify-items: center; gap: .4rem; }
.pp-banner__link { display: block; max-width: min(100%, 560px); border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  transition: transform .25s ease; }
.pp-banner__link:hover { transform: translateY(-3px) scale(1.01); }
.pp-banner__link img { display: block; width: 100%; height: auto; }
@media (min-width: 800px) { .pp-banner__link { max-width: min(100%, 980px); } }
.pp-banner__legal { margin: 0; font-size: .75rem; color: #9fb6df; text-align: center; }

/* ===== Flyers du moment (duo sous l'accueil) ===== */
.pp-duo { padding: 1.2rem 0 .4rem; }
.pp-duo__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; max-width: 760px; }
.pp-duo__item { display: grid; place-items: center; border-radius: 16px; overflow: hidden; background: radial-gradient(circle at 50% 30%, #12285c, #050c1d 75%); box-shadow: 0 14px 30px rgba(0, 0, 0, .4);
  aspect-ratio: 4 / 5; transition: transform .25s ease; }
.pp-duo__item:hover { transform: translateY(-3px); }
.pp-duo__item img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pp-banner { padding-top: 1rem; }

/* =====================================================================
   Bouton WhatsApp flottant (vert réservé à WhatsApp) — au-dessus de la barre code sur mobile
   ===================================================================== */
.wa-float { position: fixed; z-index: 45; right: 18px; bottom: calc(22px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: .5rem; height: 56px; padding: 0 1.15rem 0 .95rem; border-radius: 999px;
  background: linear-gradient(135deg, #2fe06f, #12a84c); color: #fff; font-weight: 800; text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(18,168,76,.75), 0 0 0 1px rgba(255,255,255,.18) inset;
  animation: wa-in .6s cubic-bezier(.2,.7,.2,1) 1.2s both; transition: transform .2s ease, box-shadow .2s ease; }
.wa-float:hover, .wa-float:focus-visible { transform: translateY(-2px) scale(1.03); color: #fff;
  box-shadow: 0 18px 36px -10px rgba(18,168,76,.9), 0 0 0 1px rgba(255,255,255,.3) inset; }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; flex: none; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid rgba(47,224,111,.7);
  animation: wa-ring 2.6s ease-out 2s infinite; pointer-events: none; }
@keyframes wa-in { from { transform: translateY(40px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes wa-ring { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
@media (max-width: 759px) {
  .wa-float { width: 56px; padding: 0; justify-content: center; right: 14px; }
  .wa-float__label { display: none; }
  .wa-float--above { bottom: calc(90px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .wa-float, .wa-float::before { animation: none !important; } }
