/* =====================================================================
   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 .visual { transform: scale(1.07); }
.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; }
}
