/*
 * Petit Polisson : mise en page (inspiree de xldemo.apwd.fr).
 * Les couleurs sont dans petit-polisson-dark-theme.css (variables --pp-*).
 */

/* =============================================================== Base */
html { scroll-padding-top: calc(var(--pp-header-h) + 10px); }

body {
    min-height: 100vh;
    padding-top: var(--pp-header-h);
    background: var(--pp-bg);
    color: var(--pp-text);
    font-family: var(--pp-font);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--pp-nude); text-decoration: none; transition: color .2s ease; }
a:hover, a:focus { color: #fff; }

/* le bootstrap.min.css de Black Label ajoute letter-spacing 1px partout et 3px + majuscules aux titres */
body { letter-spacing: normal; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: var(--pp-font); color: inherit; letter-spacing: normal; text-transform: none; }
h1 { font-size: 1.7em; font-weight: 300; text-transform: uppercase; letter-spacing: .5px; text-align: left; }

::selection { background: var(--pp-nude-2); color: var(--pp-btn-text); }

.hidden { display: none !important; }

/* Le contenu fait au moins la hauteur de l'ecran : le pied de page reste sous la ligne de flottaison */
#mainApp { min-height: calc(100vh - var(--pp-header-h)); min-height: calc(100svh - var(--pp-header-h)); }

/* =============================================================== Notifications (apparaissent puis disparaissent en fondu) */
.ppToasts {
    position: fixed;
    top: calc(var(--pp-header-h) + 12px);
    left: 50%;
    z-index: 1060;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(92vw, 420px);
    transform: translateX(-50%);
    pointer-events: none;
}
.ppToast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 16px;
    border: 1px solid var(--pp-line-2);
    border-radius: 14px;
    background: rgba(37, 31, 27, .96);
    color: var(--pp-text);
    font-size: .95em;
    line-height: 1.4;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .55);
    backdrop-filter: blur(8px);
    pointer-events: auto;
    cursor: pointer;
    animation: ppToastIn .35s ease both;
}
.ppToast i { margin-top: 2px; font-size: 1.1em; }
.ppToast.success { border-color: rgba(233, 196, 169, .45); }
.ppToast.success i { color: var(--pp-success); }
.ppToast.error { border-color: rgba(255, 93, 93, .45); }
.ppToast.error i { color: var(--pp-danger); }
.ppToast.hide { animation: ppToastOut .5s ease forwards; }
@keyframes ppToastIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ppToastOut { to { opacity: 0; transform: translateY(-8px); } }

/* Bouton principal "couleur chair" (aussi applique aux boutons Bootstrap du code d'origine) */
.ppBtn,
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: .65em 1.3em;
    border: 0;
    border-radius: 10px;
    background: var(--pp-action);
    color: var(--pp-action-text) !important;
    font-family: var(--pp-font);
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .25);
    transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
    cursor: pointer;
}
.ppBtn:hover, .btn-primary:hover, .btn-secondary:hover,
.ppBtn:focus, .btn-primary:focus, .btn-secondary:focus {
    background: var(--pp-action-hover);
    color: var(--pp-action-text) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 18px var(--pp-action-glow), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.ppBtn.wide { display: flex; width: 100%; }
.ppBtn.ghost {
    background: transparent;
    border: 1px solid var(--pp-line-2);
    color: var(--pp-text) !important;
    box-shadow: none;
}
.ppBtn.ghost:hover { border-color: var(--pp-nude-2); color: #fff !important; background: rgba(255, 255, 255, .04); }

.btn-default, .btn-login {
    border: 1px solid var(--pp-line-2);
    border-radius: 10px;
    background: transparent;
    color: var(--pp-text);
}
.btn-default:hover, .btn-login:hover { border-color: var(--pp-nude-2); color: #fff; }

.form-control, .form-select {
    border-radius: 10px;
    background-color: var(--pp-bg-deep);
    border-color: var(--pp-line-2);
    color: var(--pp-text);
    padding: .65rem .9rem;
}
.form-control:focus, .form-select:focus {
    background-color: var(--pp-bg-deep);
    border-color: var(--pp-focus);
    color: var(--pp-text);
    box-shadow: 0 0 0 3px rgba(217, 165, 130, .18);
}
.form-control::placeholder { color: var(--pp-muted) !important; opacity: 1; }

.card { border-radius: var(--pp-radius); border-color: var(--pp-line); }
.card-header { border-radius: var(--pp-radius) var(--pp-radius) 0 0 !important; font-weight: 700; }

.alert { border-radius: 12px; border: 1px solid; }
.alert-danger { background: rgba(255, 93, 93, .1); border-color: rgba(255, 93, 93, .35); color: #ffc9c4; }
.alert-success { background: rgba(127, 200, 154, .1); border-color: rgba(127, 200, 154, .35); color: #cdeed8; }

.modal-content { border-radius: var(--pp-radius); border: 1px solid var(--pp-line); }
.modal-title { font-weight: 700; }

.dropdown-menu { border-radius: 12px; border: 1px solid var(--pp-line); padding: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.dropdown-item { border-radius: 8px; padding: 8px 12px; }
.dropdown-item i { width: 20px; margin-right: 6px; color: var(--pp-nude); text-align: center; }

/* =============================================================== En-tete */
.ppHeader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: var(--pp-header-h);
    background: linear-gradient(180deg, var(--pp-brand) 0%, var(--pp-brand-2) 100%);
    color: #fff;
    box-shadow: 0 0 14px rgba(0, 0, 0, .55);
    user-select: none;
}
.ppHeader .int {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 100%;
    padding: 0 16px;
}
.ppHeader .logo { display: flex; align-items: center; flex-shrink: 0; }
.ppHeader .logo img { height: 44px; width: auto; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.ppHeader .logo .txt { color: #fff; font-size: 1.4em; font-weight: 900; }

.ppHeader .mainNav { display: flex; gap: 4px; margin-left: 18px; margin-right: auto; }
.ppHeader .mainNav a {
    padding: 7px 14px;
    border-radius: 8px;
    color: rgba(255, 255, 255, .88);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.ppHeader .mainNav a:hover, .ppHeader .mainNav a.selected { background: rgba(0, 0, 0, .22); color: #fff; }

.userMenu { display: flex; align-items: center; gap: 8px; }
.userMenu > a, .userMenu .accountBtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-weight: 700;
    line-height: 20px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
    transition: background .2s ease;
}
.userMenu > a:hover, .userMenu > a.selected, .userMenu .accountBtn:hover, .userMenu .show > .accountBtn {
    background: rgba(0, 0, 0, .25);
    color: #fff;
}
.userMenu .iconLink i { font-size: 1.2em; }
.userMenu .accountBtn i.fa-user-circle { font-size: 1.5em; }
.userMenu a.signup {
    padding: 8px 16px;
    border-radius: 10px;
    background: var(--pp-action);
    color: var(--pp-action-text);
    text-shadow: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.userMenu a.signup:hover { background: var(--pp-action-hover); color: var(--pp-action-text); }

/* Selecteur de langue */
.langMenu .langBtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: .85em;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.langMenu .langBtn:hover, .langMenu.show .langBtn { background: rgba(0, 0, 0, .25); }
.langMenu .langBtn .fi { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .2); }
.langMenu .dropdown-item.active, .langMenu .dropdown-item:active { background: var(--pp-surface-2); color: var(--pp-nude); }
.ppFooter .links.langs a.current { color: var(--pp-nude); font-weight: 700; }

@media (max-width: 600px) {
    .langMenu .langBtn .code { display: none; }
    .ppHeader .logo img { height: 36px; }
    .userMenu { gap: 4px; }
    .userMenu > a { padding: 6px 8px; }
    .userMenu a.signup { padding: 7px 12px; }
    .userMenu a.signup .opt, .userMenu .accountBtn .pseudo { display: none; }
}

/* =============================================================== Barre de navigation mobile */
.bottomNav { display: none; }
@media (max-width: 767.98px) {
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    .bottomNav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1020;
        padding-bottom: env(safe-area-inset-bottom);
        background: color-mix(in srgb, var(--pp-bg-deep) 96%, transparent);
        border-top: 1px solid var(--pp-line);
        box-shadow: 0 -4px 14px rgba(0, 0, 0, .45);
        backdrop-filter: blur(6px);
    }
    .bottomNav a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding: 9px 0 8px;
        color: var(--pp-muted);
        font-size: .7em;
        font-weight: 700;
    }
    .bottomNav a i { font-size: 1.55em; }
    .bottomNav a.selected, .bottomNav a:hover { color: var(--pp-nude); }

    .bottomNav a.diceNav { display: flex; justify-content: center; padding-top: 0; color: var(--pp-text-2); }
    .diceNav > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .diceNav .diceBtn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 60px;
        height: 60px;
        margin-top: -22px;
        padding: 0;
        border-radius: 50%;
        background: var(--pp-action);
        box-shadow: 0 0 0 5px var(--pp-bg-deep), 0 8px 20px rgba(0, 0, 0, .5), 0 0 22px var(--pp-action-glow), inset 0 2px 0 rgba(255, 255, 255, .35);
        transition: transform .2s ease;
    }
    .diceNav:active .diceBtn { transform: scale(.94); }
}

/* =============================================================== Lecteur Streamate : chat aux couleurs du site
   Le lecteur (React, player.js) s'affiche dans notre page. Ses reperes data-ta-locator sont stables, ses classes
   generees (JSS "regle-0-4-N") gardent le nom de la regle : on cible donc [data-ta-locator] et [class*="regle-"].
   #hybrid-client + !important passent devant les styles injectes par le lecteur.
   Bulles d'origine : modele en bleu rgba(0,127,193,.6) ecrit en dur, membres en gris, coins 4px. */

/* bulles du chat superpose a la video (mobile) */
#hybrid-client [data-ta-locator^="MobileFullscreen__Message__"][class*="container-"]:not([class*="system-"]) {
    padding: 5px 11px !important;
    border-radius: 14px !important;
    background: rgba(22, 16, 12, .55) !important;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
/* messages de la modele : caramel du theme (meme specificite que la regle generale + placee apres) */
#hybrid-client [data-ta-locator^="MobileFullscreen__Message__"][class*="container-"][class*="performer-"] {
    background: linear-gradient(135deg, rgba(178, 132, 101, .92) 0%, rgba(110, 77, 58, .92) 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}
#hybrid-client [data-ta-locator^="MobileFullscreen__Message__"][class*="performer-"] [data-ta-locator^="MobileFullscreen__Message__Nickname__"] { color: #ffe6d4; }
/* pourboires / gold : reflet ambre (le texte dore d'origine est conserve) */
#hybrid-client [data-ta-locator^="MobileFullscreen__Message__"][class*="container-"][class*="gold-"] {
    background: linear-gradient(135deg, rgba(226, 174, 76, .3) 0%, rgba(120, 82, 24, .45) 100%) !important;
}

/* zone de saisie du chat (video plein ecran mobile) : bord nude discret au lieu du cadre gris clair */
#hybrid-client [data-ta-locator="CamFullscreenChatInput-Box"] > div {
    border-color: rgba(233, 196, 169, .3) !important;
    border-radius: 22px !important;
    background: rgba(22, 16, 12, .62) !important;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
    transition: border-color .2s ease;
}
#hybrid-client [data-ta-locator="CamFullscreenChatInput-Box"] > div:focus-within { border-color: rgba(233, 196, 169, .65) !important; }
#hybrid-client [data-ta-locator="CamFullscreenChatInput-Box"] form { padding-inline-start: 12px !important; }
#hybrid-client [data-ta-locator^="MobileChatInput-Box-ChatInput"]::placeholder { color: rgba(233, 196, 169, .72) !important; }
#hybrid-client [data-ta-locator="CamFullscreenChatInput-Box"] [class*="fakeBlinkingCursor-"] { background-color: var(--pp-nude) !important; }
#hybrid-client [data-ta-locator="MobileChatInput-Box-SubmitButton"] { color: var(--pp-nude) !important; }
#hybrid-client [data-ta-locator="MobileChatInput-Box-SubmitButton"] svg,
#hybrid-client [data-ta-locator="MobileChatInput-Box-SubmitButton"] svg path { fill: var(--pp-nude) !important; }

/* =============================================================== De "modele au hasard" */
/* De plat (SVG) : bouton pseudo au hasard de l'inscription */
.die { display: block; width: 100%; height: 100%; overflow: visible; transform: rotate(-12deg); transform-origin: 50% 50%; transition: transform .35s ease; }
.die .face { fill: #2b1c13; stroke: rgba(255, 255, 255, .18); stroke-width: 1.5; }
.die .p { fill: var(--pp-nude); opacity: 0; transition: opacity .18s ease; }
.die .p.on { opacity: 1; }
.dice.rolling .die { animation: ppRoll .6s cubic-bezier(.3, .7, .4, 1); }
@keyframes ppRoll {
    0% { transform: rotate(-12deg) scale(1); }
    45% { transform: rotate(250deg) scale(.82); }
    100% { transform: rotate(708deg) scale(1); }
}

/* De 3D (cube CSS, templates/components/_die3d.twig) : petit-polisson.js le fait rouler sur plusieurs
   tours (transition du cube) et rebondir a l'atterrissage (classe .hop) */
.die3d { --s: 25px; position: relative; display: block; flex: none; width: var(--s); height: var(--s); perspective: calc(var(--s) * 7); }
.die3d .tilt, .die3d .cube { position: absolute; inset: 0; transform-style: preserve-3d; }
.die3d .tilt { transform: rotateX(-24deg) rotateY(-32deg); transition: transform .35s ease; }
.die3d .cube { transition: transform 1.2s cubic-bezier(.12, .7, .18, 1); }
.die3d .f, .die3d .core { position: absolute; inset: 0; }
.die3d .f {
    display: grid;
    grid-template: repeat(3, 1fr) / repeat(3, 1fr);
    padding: 15%;
    border-radius: 23%;
    background: radial-gradient(circle at 28% 22%, #563b29 0%, #2e1e14 58%, #1d120b 100%);
    box-shadow: inset 0 0 0 1px rgba(233, 196, 169, .24), inset 0 0 calc(var(--s) * .2) rgba(0, 0, 0, .55);
    backface-visibility: hidden;
}
/* plans interieurs : bouchent les coins arrondis */
.die3d .core { background: #1d120b; border-radius: 12%; transform: scale(.94); }
.die3d .core.cy { transform: rotateY(90deg) scale(.94); }
.die3d .core.cx { transform: rotateX(90deg) scale(.94); }
.die3d .f1 { transform: translateZ(calc(var(--s) / 2)); }
.die3d .f6 { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.die3d .f3 { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.die3d .f4 { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.die3d .f2 { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.die3d .f5 { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.die3d .p {
    width: 82%;
    height: 82%;
    align-self: center;
    justify-self: center;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 32%, #fdeadb 0%, var(--pp-nude) 50%, #b5866a 100%);
    box-shadow: inset 0 -1px 1px rgba(0, 0, 0, .35), 0 0 2px rgba(233, 196, 169, .35);
}
.die3d .p.tl { grid-area: 1 / 1; }
.die3d .p.tr { grid-area: 1 / 3; }
.die3d .p.ml { grid-area: 2 / 1; }
.die3d .p.c { grid-area: 2 / 2; }
.die3d .p.mr { grid-area: 2 / 3; }
.die3d .p.bl { grid-area: 3 / 1; }
.die3d .p.br { grid-area: 3 / 3; }
/* saut pendant le roule, petit rebond a l'atterrissage */
.die3d.hop { animation: ppDieHop 1.2s cubic-bezier(.3, .7, .4, 1); }
@keyframes ppDieHop {
    0% { transform: translateY(0) scale(1); }
    18% { transform: translateY(-10px) scale(.9); }
    50% { transform: translateY(-4px) scale(.94); }
    72% { transform: translateY(1px) scale(1.07); }
    86% { transform: translateY(0) scale(.98); }
    100% { transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .die3d .cube { transition: none; }
    .die3d.hop { animation: none; }
}

/* Ordinateur : bouton flottant en bas au centre */
.diceFab {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 1025;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    padding: 13px;
    border-radius: 50%;
    background: var(--pp-action);
    box-shadow: 0 0 0 5px rgba(19, 17, 16, .85), 0 10px 26px rgba(0, 0, 0, .55), 0 0 26px var(--pp-action-glow), inset 0 2px 0 rgba(255, 255, 255, .35);
    transform: translateX(-50%);
    transition: transform .2s ease, box-shadow .2s ease;
}
.diceFab:hover { transform: translateX(-50%) translateY(-3px) scale(1.06); box-shadow: 0 0 0 5px rgba(19, 17, 16, .85), 0 14px 30px rgba(0, 0, 0, .6), 0 0 34px var(--pp-action-glow), inset 0 2px 0 rgba(255, 255, 255, .4); }
.diceFab .die3d, .diceNav .die3d { --s: 27px; }
.diceFab:hover .die3d .tilt { transform: rotateX(-32deg) rotateY(-48deg); }
.diceFab .tip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    padding: 5px 11px;
    border-radius: 8px;
    background: var(--pp-surface-2);
    border: 1px solid var(--pp-line-2);
    color: var(--pp-text);
    font-size: .8em;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, 4px);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}
.diceFab:hover .tip { opacity: 1; transform: translate(-50%, 0); }

/* Mobile : de au centre de la barre du bas, en relief (le de flottant est reserve a l'ordinateur) */
.diceNav { display: none; }
@media (max-width: 767.98px) {
    .diceFab { display: none; }
}

/* =============================================================== Pied de page */
.ppFooter {
    padding: 34px 16px 40px;
    color: var(--pp-muted);
    font-size: .82em;
    text-align: center;
}
.ppFooter .brand { margin-bottom: 10px; color: var(--pp-text-2); font-weight: 700; letter-spacing: .5px; }
.ppFooter .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 12px; }
.ppFooter a { color: var(--pp-text-2); }
.ppFooter a:hover { color: var(--pp-nude); }
.ppFooter p { margin: 6px 0; }

/* =============================================================== Ecran "18 ans ou plus" (components/_age_gate.twig)
   Nouveaux visiteurs, sur tout le site et le mode Live ; vaut acceptation des conditions et des cookies */
body.ageGateOpen { overflow: hidden; }
.ageGate {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    padding: 20px;
    overflow-y: auto;
    background: rgba(8, 6, 5, .8);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}
.ageGate[hidden] { display: none; }
.ageGate .box {
    width: min(100%, 400px);
    margin: auto; /* centre, et reste lisible en defilant sur un petit ecran */
    padding: 26px 22px 18px;
    border: 1px solid var(--pp-line-2);
    border-radius: 18px;
    background: var(--pp-surface);
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.ageGate .badge18 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    margin: 0 auto 14px;
    border: 3px solid var(--pp-live);
    border-radius: 50%;
    color: #fff;
    font-size: 1.35em;
    font-weight: 900;
}
.ageGate h2 { margin: 0 0 10px; color: var(--pp-text); font-size: 1.3em; font-weight: 900; }
.ageGate p { margin: 0 0 10px; color: var(--pp-text-2); font-size: .93em; line-height: 1.5; }
.ageGate .ppBtn { margin-top: 10px; padding: .85em 1em; font-size: 1em; }
.ageGate p.legal { margin: 14px 0 0; color: var(--pp-muted); font-size: .76em; line-height: 1.5; }
.ageGate p.legal a { color: var(--pp-nude); text-decoration: underline; text-underline-offset: 2px; }

/* =============================================================== Invitation a installer l'application (PWA)
   components/_pwa_install.twig + public/js/pwa.js ; au-dessus de la barre du bas (mobile), en bas a droite (ordinateur) */
.jsPwaInstall[hidden] { display: none !important; }
.pwaInstall {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(64px + 30px + env(safe-area-inset-bottom)); /* au-dessus de la barre du bas et du de qui en depasse */
    z-index: 1040;
    max-width: 420px;
    margin: 0 auto;
    padding: 16px 16px 14px;
    border: 1px solid var(--pp-line-2);
    border-radius: 18px;
    background: rgba(37, 31, 27, .97);
    box-shadow: 0 16px 50px rgba(0, 0, 0, .6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .3s ease, transform .3s ease;
}
.pwaInstall.on { opacity: 1; transform: none; }
.pwaInstall[hidden] { display: none; }
.pwaInstall .close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--pp-muted);
}
.pwaInstall .close:hover { background: rgba(255, 255, 255, .06); color: var(--pp-text); }
.pwaInstall .head { display: flex; align-items: center; gap: 12px; padding-right: 26px; }
.pwaInstall .head img { flex: none; border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.pwaInstall strong { display: block; color: var(--pp-text); font-size: 1.02em; line-height: 1.3; }
.pwaInstall .head span { display: block; margin-top: 3px; color: var(--pp-text-2); font-size: .86em; line-height: 1.4; }
.pwaInstall .ios { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); color: var(--pp-text-2); font-size: .9em; line-height: 1.5; }
.pwaInstall .ios .shareIco { margin: 0 2px; color: #4ea3ff; vertical-align: -4px; }
.pwaInstall .acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.pwaInstall .acts .ppBtn { padding: .6em 1.1em; font-size: .92em; }
.pwaInstall .acts .ppBtn i { margin-right: 7px; }
.pwaInstall.isIos .jsPwaGo, .pwaInstall:not(.isIos) .ios { display: none; }
/* meme carte : invitation aux notifications apres l'ajout d'un favori (components/_push_ask.twig, push.js) */
.pushAsk .head .bell {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(180deg, #f6dcc8, #d29c76);
    color: #3a2317;
    font-size: 1.35em;
}
.pushAsk.isIos .jsPushAskGo, .pushAsk:not(.isIos) .jsPushAskInstall, .pushAsk.isIos .txt, .pushAsk:not(.isIos) .txtIos { display: none; }
@media (min-width: 768px) {
    .pwaInstall { left: auto; right: 24px; bottom: 24px; width: 380px; margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .pwaInstall { transition: none; } }

/* =============================================================== Page d'accueil / recherche */
.page { padding: 18px 12px 10px; }
.homeLayout { max-width: 2400px; margin: 0 auto; }
.homeLeft { margin-bottom: 14px; }
.homeRight { display: none; }

@media (min-width: 992px) {
    .page.home { padding: 22px 20px 10px; }
    .homeLayout {
        display: grid;
        grid-template-columns: 250px minmax(0, 1fr);
        grid-template-areas: "left tabs" "left main";
        grid-template-rows: auto 1fr;
        gap: 0 26px;
    }
    .homeTabs { grid-area: tabs; }
    .homeMain { grid-area: main; min-width: 0; }
    .homeLeft { grid-area: left; align-self: start; position: sticky; top: calc(var(--pp-header-h) + 16px); max-height: calc(100vh - var(--pp-header-h) - 32px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--pp-line-2) transparent; margin: 0; padding-right: 4px; }
}
@media (min-width: 1360px) {
    .homeLayout {
        grid-template-columns: 250px minmax(0, 1fr) 280px;
        grid-template-areas: "left tabs right" "left main right";
    }
    .homeRight { grid-area: right; display: block; align-self: start; position: sticky; top: calc(var(--pp-header-h) + 16px); }
}

/* Onglets Femmes / Hommes / Trans */
.homeTabs { display: flex; align-items: center; gap: 8px; padding: 0 0 14px; overflow-x: auto; scrollbar-width: none; }
.homeTabs::-webkit-scrollbar { display: none; }
.homeTabs a {
    flex-shrink: 0;
    padding: 8px 18px;
    border-radius: 22px;
    background: var(--pp-surface-2);
    color: var(--pp-text-2);
    font-weight: 700;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}
.homeTabs a i { margin-right: 4px; color: var(--pp-nude); }
.homeTabs a:hover { color: #fff; background: var(--pp-line); }
.homeTabs a.selected { background: var(--pp-btn); color: var(--pp-btn-text); }
.homeTabs a.selected i { color: var(--pp-btn-text); }
.homeTabs .tileSize { display: none; gap: 2px; margin-left: auto; }
.homeTabs .tileSize a { padding: 7px 10px; border-radius: 8px; background: none; color: var(--pp-muted); }
.homeTabs .tileSize a:hover { background: rgba(255, 255, 255, .05); color: var(--pp-text); }
.homeTabs .tileSize a.selected { background: rgba(233, 196, 169, .12); color: var(--pp-nude); }
/* les icones suivent la couleur du lien (sans heriter du style des onglets Femmes / Hommes / Trans) */
.homeTabs .tileSize a i,
.homeTabs .tileSize a.selected i { margin: 0; color: inherit; }
@media (min-width: 992px) { .homeTabs .tileSize { display: flex; } }

/* Titre de la liste */
.homeTitle { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 2px 12px; color: var(--pp-text-2); font-size: .95em; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.homeTitle .dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--pp-live); vertical-align: 1px; animation: ppBlink 2s infinite; }
.homeTitle small { color: var(--pp-muted); font-size: .85em; font-weight: 400; text-transform: none; letter-spacing: 0; }
.homeTitle a.clear { margin-left: auto; font-size: .9em; font-weight: 400; text-transform: none; letter-spacing: 0; }
.notice { margin: 0 2px 16px; padding: 12px 16px; border-radius: 12px; background: var(--pp-surface); border: 1px solid var(--pp-line); color: var(--pp-text-2); }

/* Colonne gauche : recherche + categories + filtres */
.searchBar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 6px 0 16px;
    border: 1px solid var(--pp-line-2);
    border-radius: 24px;
    background: var(--pp-surface);
    transition: border-color .2s ease;
}
.searchBar:focus-within { border-color: var(--pp-focus); }
.searchBar > i { color: var(--pp-muted); }
.searchBar input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: none; color: var(--pp-text); font-size: 1em; }
.searchBar input::placeholder { color: var(--pp-muted); }
.searchBar input::-webkit-search-cancel-button { filter: invert(.7); }
.searchBar .filterToggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--pp-text-2);
}
.searchBar .filterToggle:hover, .homeLeft.open .searchBar .filterToggle { background: rgba(255, 255, 255, .08); color: var(--pp-nude); }

/* Bouton "Mode Live" sous la recherche : ouvre /live (plein ecran, on glisse d'un modele a l'autre) */
.liveCta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding: 10px 10px 10px 14px;
    border-radius: 18px;
    background: linear-gradient(105deg, rgba(255, 93, 93, .22) 0%, rgba(233, 196, 169, .08) 58%, var(--pp-surface) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 93, 93, .45), 0 6px 20px rgba(0, 0, 0, .25);
    color: #fff;
    transition: transform .15s ease, box-shadow .2s ease;
}
.liveCta:hover, .liveCta:focus { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 93, 93, .75), 0 8px 26px rgba(0, 0, 0, .35), 0 0 26px rgba(255, 93, 93, .2); }
.liveCta:active { transform: scale(.985); }
.liveCta .faces { display: flex; flex: none; padding-left: 10px; }
.liveCta .faces img {
    width: 38px;
    height: 38px;
    margin-left: -10px;
    border: 2px solid var(--pp-bg);
    border-radius: 50%;
    background: var(--pp-surface-2);
    object-fit: cover;
}
.liveCta .txt { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.25; }
.liveCta strong { font-size: 1.08em; font-weight: 900; }
.liveCta strong .dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--pp-live); vertical-align: 1px; animation: ppBlink 2s infinite; }
.liveCta small { margin-top: 2px; color: var(--pp-text-2); font-size: .8em; }
.liveCta .go {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding-left: 3px;
    border-radius: 50%;
    background: var(--pp-live);
    color: #fff;
    animation: ppLivePulse 2.4s ease-in-out infinite;
}
@keyframes ppLivePulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(255, 93, 93, .18); }
    50% { box-shadow: 0 0 0 9px rgba(255, 93, 93, .06); }
}
@media (max-width: 339.98px) { .liveCta .faces { display: none; } }
@media (min-width: 992px) {
    .liveCta { gap: 10px; padding: 10px 10px 10px 14px; }
    .liveCta .faces { display: none; }
}
@media (prefers-reduced-motion: reduce) { .liveCta .go { animation: none; } }

.sidePanel { display: none; margin-top: 10px; padding: 12px; border-radius: var(--pp-radius); background: var(--pp-surface); border: 1px solid var(--pp-line); }
.homeLeft.open .sidePanel { display: block; }
@media (min-width: 992px) {
    .searchBar .filterToggle { display: none; }
    .sidePanel { display: block; margin-top: 4px; padding: 0; background: none; border: 0; }
}

.sideGroup { padding: 14px 0 12px; border-bottom: 1px solid var(--pp-line); }
.sideGroup:last-child { border-bottom: 0; }
.sideGroup .label { display: block; margin-bottom: 8px; color: var(--pp-muted); font-size: .75em; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border: 1px solid var(--pp-line-2);
    border-radius: 16px;
    background: var(--pp-surface-2);
    color: var(--pp-text-2);
    font-size: .84em;
    line-height: 1.3;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.chip small { color: var(--pp-muted); font-size: .85em; }
.chip:hover { border-color: var(--pp-nude-2); color: #fff; }
.chip.selected { background: var(--pp-btn); border-color: transparent; color: var(--pp-btn-text); font-weight: 700; }
.chip.selected small { color: rgba(58, 35, 23, .7); }
/* fiche modele : un tag en texte ne reagit pas au survol ; un tag qui mene a une page du site est en couleur */
span.chip:hover { border-color: var(--pp-line-2); color: var(--pp-text-2); }
.chip.tagLink { border-color: rgba(233, 196, 169, .45); background: rgba(233, 196, 169, .08); color: var(--pp-nude); font-weight: 700; }
.chip.tagLink:hover, .chip.tagLink:focus { border-color: var(--pp-nude); background: rgba(233, 196, 169, .16); color: #fff; }

.advToggle {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--pp-text-2);
    font-weight: 700;
}
.advToggle:hover { color: #fff; }
.advToggle .chev { margin-left: auto; transition: transform .2s ease; }
.advToggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.advToggle i:first-child { color: var(--pp-nude); }

#searchFilterForm .filterField { margin-top: 12px; }
#searchFilterForm .filterField.hidden { display: none; }
#searchFilterForm label { display: block; margin-bottom: 5px; color: var(--pp-muted); font-size: .78em; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
#searchFilterForm .form-control { padding: .5rem .75rem; font-size: .9em; }
#searchFilterForm .input-group { gap: 6px; flex-wrap: nowrap; }
#searchFilterForm .input-group .form-control { border-radius: 10px !important; }
#searchFilterForm .filterActions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
#searchFilterForm .filterActions .btn-default { padding: .55em .9em; font-size: .9em; }
#searchFilterForm .filterActions .ppBtn { padding: .55em 1em; font-size: .9em; }

/* select2 dans les filtres */
.select2-container { width: 100% !important; }
.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
    min-height: 40px;
    border-radius: 10px !important;
    background-color: var(--pp-bg-deep) !important;
    border: 1px solid var(--pp-line-2) !important;
    padding: 3px 6px !important;
}
.select2-container--default.select2-container--focus .select2-selection--multiple { border-color: var(--pp-focus) !important; }
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin-top: 3px;
    border: 0 !important;
    border-radius: 12px !important;
    background: var(--pp-btn) !important;
    color: var(--pp-btn-text) !important;
    font-size: .82em;
    font-weight: 700;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove { color: var(--pp-btn-text) !important; border-right-color: rgba(58, 35, 23, .25) !important; }
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover { background: rgba(0, 0, 0, .1) !important; }
.select2-container--default .select2-search--inline .select2-search__field { color: var(--pp-text); font-family: var(--pp-font); }
.select2-dropdown { border-radius: 10px !important; overflow: hidden; border-color: var(--pp-line-2) !important; background: var(--pp-surface) !important; }
.select2-container--default .select2-results__option--highlighted,
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--pp-surface-2) !important; color: var(--pp-nude) !important; }
.select2-container--default .select2-results__option--selected { background: rgba(233, 196, 169, .14) !important; color: var(--pp-text) !important; }

/* Colonne droite */
.rBlock { margin-bottom: 14px; padding: 16px; border-radius: var(--pp-radius); background: var(--pp-surface); border: 1px solid var(--pp-line); }
.rBlock h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: .95em; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.rBlock h3 i { color: var(--pp-nude); }
.rBlock p { margin: 0 0 12px; color: var(--pp-text-2); font-size: .9em; }
.rBlock.rJoin {
    text-align: center;
    background: linear-gradient(150deg, rgba(233, 196, 169, .17), rgba(169, 124, 96, .06));
    border-color: rgba(233, 196, 169, .35);
}
.rBlock.rJoin .title { display: block; margin-bottom: 6px; font-size: 1.1em; font-weight: 900; }
.rBlock .perks { margin: 0 0 14px; padding: 0; list-style: none; text-align: left; }
.rBlock .perks li { display: flex; gap: 10px; padding: 5px 0; color: var(--pp-text-2); font-size: .88em; }
.rBlock .perks li i { width: 16px; margin-top: 3px; color: var(--pp-nude); text-align: center; }
.rBlock .links a { display: flex; align-items: center; gap: 10px; margin: 0 -8px; padding: 8px; border-radius: 10px; color: var(--pp-text); }
.rBlock .links a:hover { background: rgba(255, 255, 255, .05); color: var(--pp-nude); }
.rBlock .links a i { width: 18px; color: var(--pp-nude); text-align: center; }

/* =============================================================== Vignettes des modeles */
.modelList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 14px 10px;
}
@media (min-width: 576px) { .modelList { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px 12px; } }
.homeLayout.tilesLarge .modelList { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.modelList .item { position: relative; min-width: 0; }
.modelList .item > a.live {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: var(--pp-radius);
    background: var(--pp-surface);
    border: 2px solid transparent;
    transition: border-color .3s ease, box-shadow .4s ease, transform .4s ease;
}
.modelList .item > a.live img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.modelList .item > a.live:after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 40%;
    background: linear-gradient(transparent, rgba(0, 0, 0, .45));
    pointer-events: none;
}
.modelList .item:hover > a.live {
    border-color: rgba(233, 196, 169, .55);
    box-shadow: 0 0 24px rgba(233, 196, 169, .22);
}
.modelList .item:hover > a.live img { transform: scale(1.04); }

.modelList .item .status {
    position: absolute;
    top: 9px;
    left: 9px;
    z-index: 2;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(4px);
    color: rgba(255, 255, 255, .92);
    font-size: .66em;
    font-weight: 900;
    letter-spacing: .6px;
    line-height: 1.7;
    text-transform: uppercase;
}
.modelList .item .status.live:before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-radius: 50%;
    background: var(--pp-live);
    vertical-align: 1px;
    animation: ppBlink 2s infinite;
}
.modelList .item .status.show { background: rgba(58, 35, 23, .75); color: var(--pp-nude); }
.modelList .item .status.show i { margin-right: 3px; }
.modelList .item .badges { position: absolute; top: 9px; right: 9px; z-index: 2; display: flex; gap: 4px; }
.modelList .item .badges span {
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    font-size: .62em;
    font-weight: 900;
    letter-spacing: .4px;
    line-height: 1.7;
}
.modelList .item .badges .new { background: var(--pp-btn); color: var(--pp-btn-text); }
.modelList .item.offline > a.live img { filter: grayscale(.85); opacity: .65; }

.modelList .item .bottom { display: flex; align-items: center; gap: 9px; padding: 8px 2px 0; }
.modelList .item .profileImg { flex-shrink: 0; }
.modelList .item .profileImg img { display: block; width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--pp-line-2); background: var(--pp-surface); }
.modelList .item:hover .profileImg img { border-color: var(--pp-nude-2); }
.modelList .item .who { flex: 1; min-width: 0; }
.modelList .item .profileName { display: block; overflow: hidden; color: var(--pp-text); font-weight: 700; white-space: nowrap; text-overflow: ellipsis; transition: color .3s ease; }
.modelList .item:hover .profileName { color: var(--pp-nude); }
.modelList .item .meta { display: flex; align-items: center; gap: 6px; margin-top: 1px; overflow: hidden; color: var(--pp-muted); font-size: .78em; white-space: nowrap; }
.modelList .item .meta .fi { flex-shrink: 0; border-radius: 2px; }
.stars { color: var(--pp-nude-2); letter-spacing: 1px; }
.stars .off { color: var(--pp-line-2); }
.starsCompact { display: none; color: var(--pp-text-2); }
.starsCompact i { color: var(--pp-nude-2); }
@media (max-width: 575.98px) {
    .modelList .item .stars { display: none; }
    .modelList .item .starsCompact { display: inline; }
}

.favBtn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--pp-muted);
    font-size: 1.05em;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}
.favBtn:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.favBtn.on { color: var(--pp-nude); }
.favBtn:active { transform: scale(1.25); }

/* Grandes vignettes : on montre aussi l'accroche */
.modelList .item .headline { display: none; }
.homeLayout.tilesLarge .modelList .item .headline { display: block; margin-top: 4px; overflow: hidden; color: var(--pp-text-2); font-size: .82em; white-space: nowrap; text-overflow: ellipsis; }

.homeTitle h1, .homeTitle h2 { margin: 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; line-height: 1.4; text-align: left; }

/* Pages SEO (/cam-blondes...) : intro sous le titre */
.landingIntro { max-width: 860px; margin: -4px 2px 16px; color: var(--pp-text-2); font-size: .92em; line-height: 1.6; }

/* Textes editoriaux : sous la liste (templates/seo/{langue}/...) et pages guide */
.seoText { max-width: 860px; margin: 34px 2px 10px; padding-top: 22px; border-top: 1px solid var(--pp-line); color: var(--pp-text-2); line-height: 1.7; }
.seoText h2 { margin: 26px 0 10px; color: var(--pp-text); font-size: 1.15rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
.seoText h2:first-child { margin-top: 0; }
.seoText h3 { margin: 18px 0 6px; color: var(--pp-text); font-size: 1rem; font-weight: 700; }
.seoText p, .seoText ul { margin: 0 0 12px; }
.seoText ul { padding-left: 1.2em; }
.seoText li { margin-bottom: 4px; }
.seoText a:not(.ppBtn) { color: var(--pp-nude); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(233, 196, 169, .4); }
.seoText a:not(.ppBtn):hover { text-decoration-color: currentColor; }
.seoFaq h3:first-child { margin-top: 4px; }
.page.guide { max-width: 860px; margin: 0 auto; padding: 22px 16px 28px; }
.guideText { margin: 0; padding: 0; border: 0; }
.guideText h1 { margin: 0 0 12px; color: var(--pp-text); font-size: 1.6rem; font-weight: 700; line-height: 1.3; }
.guideText .lead { margin-bottom: 20px; color: var(--pp-text); font-size: 1.05rem; }
.tableWrap { margin: 0 0 16px; overflow-x: auto; }
.guideTable { width: 100%; border-collapse: collapse; font-size: .92em; line-height: 1.5; }
.guideTable th, .guideTable td { height: auto; padding: 9px 10px; border-bottom: 1px solid var(--pp-line); text-align: left; vertical-align: top; }
.guideTable thead th { color: var(--pp-muted); font-size: .85em; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.guideTable tbody th { color: var(--pp-text); font-weight: 700; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.guideNext { margin-top: 20px; }
.seoText .guideList { list-style: none; margin: 0 0 22px; padding: 0; }
.guideList li { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--pp-line); }
.guideList li a { font-weight: 700; }
.guideList li span { display: block; margin-top: 2px; color: var(--pp-muted); font-size: .92em; }
.glossary { margin: 0 0 18px; }
.glossary dt { margin-top: 14px; color: var(--pp-text); font-weight: 700; scroll-margin-top: calc(var(--pp-header-h) + 12px); }
.glossary dd { margin: 2px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--pp-line); }
.guideText h1 { text-transform: none; letter-spacing: 0; }
/* telephone : une fiche par formule (intitules des colonnes repris par data-label) */
@media (max-width: 575.98px) {
    .guideTable thead { display: none; }
    .guideTable tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--pp-line); }
    .guideTable th, .guideTable td { display: block; padding: 1px 0; border: 0; white-space: normal; }
    .guideTable tbody th { margin-bottom: 3px; font-size: 1.05em; }
    .guideTable td::before { content: attr(data-label) " : "; color: var(--pp-muted); }
}

/* Favoris en direct : premiere section des listes (defile en ligne sur mobile) + sections de la page favoris */
.favLive { margin: 0 0 22px; padding-bottom: 18px; border-bottom: 1px solid var(--pp-line); }
.favLive .homeTitle h2 i { margin-right: 7px; color: var(--pp-nude); }
.favLive .homeTitle a.clear { color: var(--pp-nude); }
@media (max-width: 767.98px) {
    .favRail {
        display: flex;
        gap: 10px;
        margin: 0 -12px;
        padding: 0 12px 4px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 12px;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
    }
    .favRail::-webkit-scrollbar { display: none; }
    .favRail .item { flex: 0 0 42%; max-width: 210px; scroll-snap-align: start; }
}
.favSection + .favSection { margin-top: 28px; }
.favNone { display: flex; align-items: center; gap: 10px; margin: 0 2px; padding: 14px 16px; border-radius: var(--pp-radius); background: var(--pp-surface); color: var(--pp-muted); font-size: .92em; }
.favNone i { color: var(--pp-nude-2); }

/* Fiche modele : "Decouvrir aussi" et modeles similaires */
.modelProfil .related { margin-top: 22px; }
.modelProfil .related h2 { margin-bottom: 10px; }
.performerPage .similar { max-width: 1400px; margin: 18px auto 0; padding: 0 14px 10px; }
.performerPage .similar .homeTitle a.clear { color: var(--pp-nude); }

/* Pied de page : categories populaires (maillage interne) */
.ppFooter .links.seoLinks { max-width: 900px; margin: 0 auto 14px; gap: 6px 14px; font-size: .92em; }

@media (max-width: 767.98px) {
    .favBtn { width: 40px; height: 40px; }
    .homeTabs a { padding: 9px 16px; }
    .chip { padding: 7px 12px; }
}
@media (max-width: 575.98px) {
    .page.home { padding-top: 12px; }
    .modelList .item .profileImg { display: none; }
    .modelList .item .bottom { padding-top: 6px; }
    .modelList .item .profileName { font-size: .95em; }
}

.emptyList { padding: 50px 20px; color: var(--pp-muted); text-align: center; }
.emptyList i { display: block; margin-bottom: 12px; color: var(--pp-line-2); font-size: 2.6em; }
.emptyList p { margin-bottom: 14px; }

/* "Voir plus de modeles" (remplace la pagination, cf. petit-polisson.js) */
.loadMore { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 360px; margin: 30px auto 10px; text-align: center; }
.loadProgress { width: 180px; height: 3px; border-radius: 3px; background: var(--pp-line); overflow: hidden; }
.loadProgress span { display: block; height: 100%; border-radius: 3px; background: var(--pp-btn); transition: width .5s ease; }
.loadCount { margin: 0; color: var(--pp-muted); font-size: .85em; font-variant-numeric: tabular-nums; }
.loadMoreBtn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 12px 22px; font-size: 1em; }
.loadMoreBtn i { font-size: .85em; transition: transform .2s ease; }
.loadMoreBtn:hover i { transform: translateY(2px); }
.loadMoreBtn.loading { pointer-events: none; opacity: .85; }
.loadMoreBtn.loading i { animation: ppLoadBounce .7s ease-in-out infinite alternate; }
@keyframes ppLoadBounce { from { transform: translateY(-2px); } to { transform: translateY(3px); } }
.loadPrev { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--pp-text-2); font-size: .9em; font-weight: 700; }
.loadPrev:hover { color: var(--pp-nude); }

/* =============================================================== Formulaires (connexion, inscription...) */
.page.form { padding: 34px 14px 20px; }
.page.form .inner {
    max-width: 430px;
    margin: 0 auto;
    padding: 28px 26px;
    border-radius: 18px;
    background: var(--pp-surface);
    border: 1px solid var(--pp-line);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.page.form h1 { margin-bottom: 8px; }
.page.form .intro { margin-bottom: 18px; color: var(--pp-text-2); }
.page.form .intro b { color: var(--pp-nude); }
.page.form label { display: block; margin: 16px 0 6px; font-weight: 700; }
.page.form .box {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--pp-line-2);
    border-radius: 10px;
    background: var(--pp-bg-deep);
    color: var(--pp-text);
    font-size: 1em;
    outline: 0;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.page.form .box:focus { border-color: var(--pp-focus); box-shadow: 0 0 0 3px rgba(217, 165, 130, .18); }
.page.form .box.invalid { border-color: var(--pp-danger); }
.page.form .err { padding-top: 6px; color: var(--pp-danger); font-size: .86em; }
.page.form .hint { padding-top: 6px; color: var(--pp-muted); font-size: .82em; }
.page.form .pseudoField { display: flex; gap: 8px; }
.page.form .pseudoField .box { flex: 1; min-width: 0; }
.page.form .pseudoField .dice {
    flex-shrink: 0;
    width: 50px;
    padding: 9px;
    border: 1px solid var(--pp-line-2);
    border-radius: 10px;
    background: var(--pp-surface-2);
    transition: border-color .2s ease, background .2s ease;
}
.page.form .pseudoField .dice:hover { border-color: var(--pp-action-glow); background: var(--pp-line); }
.page.form .pseudoField .dice .face { fill: var(--pp-bg-deep); }
.page.form .passwd { position: relative; }
.page.form .passwd .box { padding-right: 82px; }
.page.form .passwd .toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    padding: 4px 6px;
    border: 0;
    background: none;
    color: var(--pp-nude);
    font-size: .85em;
    font-weight: 700;
}
.page.form label.checkbox { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; color: var(--pp-text-2); font-weight: 400; font-size: .9em; cursor: pointer; }
.page.form label.checkbox input { margin-top: 3px; accent-color: var(--pp-focus); }
.page.form .forgot { margin-top: 10px; font-size: .9em; text-align: right; }
.page.form .actions { margin-top: 24px; }
.page.form .actions .ppBtn { width: 100%; padding: .8em 1em; font-size: 1.1em; }
.page.form .alt-action { margin-top: 20px; color: var(--pp-text-2); text-align: center; }
.page.form .legal { margin-top: 16px; color: var(--pp-muted); font-size: .8em; text-align: center; }
.page.form .successIcon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: rgba(127, 200, 154, .14); color: var(--pp-success); font-size: 1.8em; }
.page.form .center { text-align: center; }
.divider { color: var(--pp-muted); font-size: .8em; text-transform: uppercase; }

/* =============================================================== Menu "Mon compte" */
.page.account { max-width: 640px; margin: 0 auto; padding: 22px 14px 24px; }
.accountHead { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.accountHead .avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--pp-btn);
    color: var(--pp-btn-text);
    font-size: 1.6em;
}
.accountHead .who { min-width: 0; }
.accountHead h1 { margin: 0 0 4px; overflow: hidden; font-size: 1.4em; font-weight: 700; text-transform: none; letter-spacing: 0; white-space: nowrap; text-overflow: ellipsis; }
.accountHead .badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 12px; font-size: .75em; font-weight: 700; }
.accountHead .badge.ok { background: rgba(127, 200, 154, .12); color: var(--pp-success); }
.accountHead .badge.todo { background: rgba(233, 196, 169, .14); color: var(--pp-nude); }
.accountCta { margin-bottom: 18px; padding: 16px; border-radius: var(--pp-radius); background: linear-gradient(150deg, rgba(233, 196, 169, .17), rgba(169, 124, 96, .06)); border: 1px solid rgba(233, 196, 169, .35); }
.accountCta p { margin: 0 0 12px; color: var(--pp-text-2); }
.menuGroup { margin-bottom: 16px; overflow: hidden; border-radius: var(--pp-radius); background: var(--pp-surface); border: 1px solid var(--pp-line); }
.menuGroup .label { display: block; padding: 12px 16px 6px; color: var(--pp-muted); font-size: .72em; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
/* lignes du menu = enfants directs (les boutons .ppBtn a l'interieur d'un bloc gardent leur style) */
.menuGroup > a, .menuGroup > button {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 54px;
    padding: 12px 16px;
    border: 0;
    border-top: 1px solid var(--pp-line);
    background: none;
    color: var(--pp-text);
    font-size: 1em;
    text-align: left;
    transition: background .2s ease;
}
.menuGroup .label + a, .menuGroup > a:first-child { border-top: 0; }
.menuGroup > a:hover, .menuGroup > button:hover { background: var(--pp-surface-2); color: #fff; }
.menuGroup > a > i:first-child, .menuGroup > button > i:first-child { width: 22px; color: var(--pp-nude); font-size: 1.1em; text-align: center; }
.menuGroup > a span, .menuGroup > button span { flex: 1; }
.menuGroup .go { color: var(--pp-line-2); font-size: .85em; }
.menuGroup button.logout { border-top: 0; color: var(--pp-danger); font-weight: 700; }
.menuGroup button.logout i { color: var(--pp-danger) !important; }

/* =============================================================== Mon compte > Notifications (alertes "favori en ligne")
   pages/user/notifications.twig + public/js/push.js ; #pushPanel[data-state] montre le bon bloc */
.backLink { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--pp-muted); font-size: .9em; }
.backLink:hover { color: var(--pp-text); }
.notifPage h1 { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; font-size: 1.4em; font-weight: 700; text-transform: none; letter-spacing: 0; }
.notifPage h1 i { color: var(--pp-nude); }
.notifPage .intro { margin: 0 0 18px; color: var(--pp-text-2); font-size: .93em; line-height: 1.5; }
.pushPanel .st { display: none; padding: 4px 16px 16px; }
.pushPanel[data-state="loading"] .st-loading,
.pushPanel[data-state="off"] .st-off,
.pushPanel[data-state="on"] .st-on,
.pushPanel[data-state="denied"] .st-denied,
.pushPanel[data-state="ios"] .st-ios,
.pushPanel[data-state="unsupported"] .st-unsupported,
.pushPanel > p.st { display: block; }
.pushPanel .st p { position: relative; margin: 6px 0 14px; padding-left: 28px; color: var(--pp-text-2); font-size: .93em; line-height: 1.5; }
.pushPanel .st p > i:first-child { position: absolute; top: 3px; left: 0; width: 18px; color: var(--pp-muted); text-align: center; }
.pushPanel .st p.ok { color: var(--pp-text); font-weight: 700; }
.pushPanel .st p.ok > i { color: var(--pp-success); }
.pushPanel .st .shareIco { margin: 0 2px; color: #4ea3ff; vertical-align: -3px; }
.pushPanel .st-loading { color: var(--pp-muted); font-size: .9em; }
.pushPanel .spin { display: inline-block; width: 14px; height: 14px; margin-right: 10px; border: 2px solid var(--pp-line-2); border-top-color: var(--pp-nude); border-radius: 50%; vertical-align: -2px; animation: ppSpin .8s linear infinite; }
@keyframes ppSpin { to { transform: rotate(360deg); } }
.pushPanel .ppBtn i { margin-right: 8px; }
.pushPanel .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.pushPanel .acts .ppBtn { flex: 1 1 auto; padding: .65em .9em; font-size: .92em; white-space: nowrap; }
.pushPanel .ppBtn[disabled] { opacity: .6; pointer-events: none; }
.pushPanel .devices { margin: 0; padding: 10px 16px 12px; border-top: 1px solid var(--pp-line); color: var(--pp-muted); font-size: .8em; }
.notifFavs .notifFav { display: flex; align-items: center; gap: 12px; min-height: 58px; margin: 0; padding: 9px 16px; border-top: 1px solid var(--pp-line); cursor: pointer; }
.notifFavs .label + .notifFav { border-top: 0; }
.notifFavs .notifFav img { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--pp-surface-2); }
.notifFavs .notifFav span { flex: 1; min-width: 0; overflow: hidden; color: var(--pp-text); font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.notifFavs .empty { padding: 4px 16px 16px; color: var(--pp-text-2); font-size: .93em; }
.notifFavs .empty p { margin: 6px 0 12px; }
.notifNote { margin: -4px 4px 0; color: var(--pp-muted); font-size: .8em; }
/* page Mes favoris : lien vers les notifications */
.notifHint {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 560px;
    margin: 0 0 16px;
    padding: 11px 14px;
    border: 1px solid rgba(233, 196, 169, .3);
    border-radius: var(--pp-radius);
    background: linear-gradient(150deg, rgba(233, 196, 169, .13), rgba(169, 124, 96, .05));
    color: var(--pp-text);
    font-size: .93em;
}
.notifHint:hover { border-color: var(--pp-nude); color: #fff; }
.notifHint > i:first-child { color: var(--pp-nude); }
.notifHint span { flex: 1; }
.notifHint .go { color: var(--pp-muted); font-size: .85em; }
/* interrupteur (case a cocher) aux couleurs du site */
.ppSwitch {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    flex: none;
    width: 48px;
    height: 28px;
    margin: 0;
    border: 0;
    border-radius: 14px;
    background: var(--pp-line-2);
    cursor: pointer;
    transition: background .2s ease;
}
.ppSwitch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
    transition: transform .2s ease;
}
.ppSwitch:checked { background: var(--pp-action); }
.ppSwitch:checked::after { transform: translateX(20px); }
.ppSwitch:focus-visible { outline: 2px solid var(--pp-focus, var(--pp-nude)); outline-offset: 2px; }
.ppSwitch:disabled { opacity: .5; cursor: default; }
@media (prefers-reduced-motion: reduce) { .ppSwitch, .ppSwitch::after, .pushPanel .spin { transition: none; animation: none; } }

/* =============================================================== Pages de compte (profil, depenses...) */
@media (max-width: 575.98px) {
    .page.form { padding: 18px 12px 16px; }
    .page.form .inner { padding: 22px 18px; border-radius: 16px; }
    .page.form h1 { font-size: 1.4em; }
    .statRow { grid-template-columns: 1fr; gap: 0; overflow: hidden; border-radius: 12px; border: 1px solid var(--pp-line); }
    .stat { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 0; border-radius: 0; border-top: 1px solid var(--pp-line); }
    .stat:first-child { border-top: 0; }
    .stat b { margin: 0; font-size: 1.15em; }
}
.page.form .inner.wide { max-width: 680px; }
.page.form .inner.xwide { max-width: 1000px; }
.page.form select.box {
    appearance: none;
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23e9c4a9' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
}
.page.form textarea.box { resize: vertical; min-height: 140px; }
.fieldGrid { display: grid; gap: 0 18px; }
@media (min-width: 600px) { .fieldGrid { grid-template-columns: 1fr 1fr; } }
.statRow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 6px 0 8px; }
.stat { padding: 14px; border-radius: 12px; background: var(--pp-bg-deep); border: 1px solid var(--pp-line); }
.stat span { display: block; color: var(--pp-muted); font-size: .78em; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.stat b { display: block; margin-top: 4px; color: var(--pp-nude); font-size: 1.4em; }
.ppTable { --bs-table-bg: transparent; margin: 0; color: var(--pp-text); }
.ppTable thead th { background: transparent !important; color: var(--pp-muted); font-size: .78em; text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--pp-line-2); }
.ppTable tbody tr { background: transparent !important; }
.ppTable td { border-color: var(--pp-line); color: var(--pp-text); }

/* =============================================================== Fiche modele */
.performerPage { padding-bottom: 10px; }
.performerPage .playerWrap { background: #000; }

/* Mobile : le lecteur Streamate fait 100vh ; on le cale entre l'en-tete et la barre du bas
   pour que ses controles et le chat restent visibles */
@media (max-width: 767.98px) {
    body.pagePerformer #hybrid-client,
    body.pagePerformer [class*="HybridClient__HCRoot"],
    body.pagePerformer [class*="MobileRoot__MobileRootWrapper"] {
        height: calc(100vh - var(--pp-header-h) - 62px - env(safe-area-inset-bottom)) !important;
        height: calc(100svh - var(--pp-header-h) - 62px - env(safe-area-inset-bottom)) !important;
    }
}
.profilHint {
    display: none;
}
@media (max-width: 767.98px) {
    .profilHint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px;
        background: var(--pp-bg-deep);
        border-bottom: 1px solid var(--pp-line);
        color: var(--pp-text-2);
        font-size: .9em;
        font-weight: 700;
    }
    .profilHint i { color: var(--pp-nude); animation: ppBounce 1.6s infinite; }
}
@keyframes ppBounce { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(3px) } }
.modelProfil { max-width: 1400px; margin: 0 auto; padding: 22px 14px 10px; }
.profilHead { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--pp-line); }
.profilHead .avatar img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid var(--pp-nude-2); }
.profilHead .infos { flex: 1; min-width: 0; }
.profilHead h1 { margin: 0 0 4px; font-size: 1.6em; text-transform: none; }
.profilHead .headline { margin: 0 0 4px; color: var(--pp-text-2); font-style: italic; }
.profilHead .rating { color: var(--pp-muted); font-size: .9em; }
.profilHead .actions { display: flex; gap: 8px; }
.profilHead .lastShow { margin-top: 4px; color: var(--pp-muted); font-size: .85em; }
.profilHead .lastShow i { margin-right: 6px; color: var(--pp-nude); }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; color: var(--pp-muted); font-size: .85em; }
.breadcrumbs a { color: var(--pp-text-2); }
.breadcrumbs a:hover { color: var(--pp-nude); }
.breadcrumbs i { font-size: .7em; color: var(--pp-line-2); }
@media (max-width: 575.98px) {
    .modelProfil { padding-top: 16px; }
    .profilHead { flex-wrap: wrap; gap: 12px; }
    .profilHead .avatar img { width: 62px; height: 62px; }
    .profilHead h1 { font-size: 1.35em; }
    .profilHead .actions { width: 100%; }
    .profilHead .actions .favBtn { flex: 1; width: auto; height: 44px; justify-content: center; }
    .part { padding: 15px; }
    .profileGallery { grid-template-columns: repeat(3, 1fr); gap: 6px; }
}
.profilHead .favBtn { width: auto; height: auto; padding: 10px 16px; border: 1px solid var(--pp-line-2); border-radius: 10px; font-size: .95em; font-weight: 700; gap: 8px; }
.profilHead .favBtn.on { border-color: var(--pp-nude-2); }

.profilCols { display: grid; gap: 16px; margin-top: 18px; }
@media (min-width: 992px) { .profilCols { grid-template-columns: 1.3fr 1fr 1fr; } }
.part { padding: 18px; border-radius: var(--pp-radius); background: var(--pp-surface); border: 1px solid var(--pp-line); }
.part h2 { margin: 0 0 12px; font-size: 1em; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.part h2 small { margin-left: 6px; color: var(--pp-muted); font-size: .8em; font-weight: 400; text-transform: none; }
.part h3 { margin: 14px 0 6px; color: var(--pp-nude); font-size: .85em; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.part p { color: var(--pp-text-2); }
.infoList { margin: 0; padding: 0; list-style: none; }
.infoList li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--pp-line); font-size: .92em; }
.infoList li:last-child { border-bottom: 0; }
.infoList li span { color: var(--pp-muted); }
.infoList li b { font-weight: 700; text-align: right; }
.review { padding: 10px 0; border-bottom: 1px dashed var(--pp-line); }
.review:last-child { border-bottom: 0; }
.review b { color: var(--pp-nude); }
.review small { display: block; color: var(--pp-muted); font-size: .78em; }
.review p { margin: 4px 0 0; font-size: .92em; }

.galleryPart { margin-top: 16px; }
.profileGallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.profileGallery .gItem { position: relative; display: block; overflow: hidden; aspect-ratio: 1; border-radius: 12px; background: var(--pp-bg-deep); }
.profileGallery .gItem img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.profileGallery .gItem:hover img { transform: scale(1.06); }

/* =============================================================== Divers */
@keyframes ppBlink { 0%, 5% { opacity: 0 } 6%, 10% { opacity: 1 } 11%, 15% { opacity: 0 } 16%, 20% { opacity: 1 } 21%, 25% { opacity: 0 } 26%, 100% { opacity: 1 } }

/* =============================================================== Niveaux des membres (XP)
   components/_xp_card.twig (Mon compte), pages/user/progress.twig (Ma progression), public/js/xp.js (bulles, nouveau niveau)
   Couleur de chaque niveau : --xp-a / --xp-b (degrade du badge), --xp-c (texte), --xp-glow (halo) */
.xpL1 { --xp-a: #c9c3bd; --xp-b: #7c7570; --xp-c: #d8d2cc; --xp-glow: rgba(201, 195, 189, .35); }
.xpL2 { --xp-a: #f6b3c8; --xp-b: #d45c86; --xp-c: #f4a3bd; --xp-glow: rgba(212, 92, 134, .38); }
.xpL3 { --xp-a: #f6dcc8; --xp-b: #c98d63; --xp-c: #e9c4a9; --xp-glow: rgba(201, 141, 99, .38); }
.xpL4 { --xp-a: #ef7a76; --xp-b: #9b1f3d; --xp-c: #f08a86; --xp-glow: rgba(155, 31, 61, .45); }
.xpL5 { --xp-a: #ffe7a3; --xp-b: #cf9b12; --xp-c: #f5cf62; --xp-glow: rgba(207, 155, 18, .4); }
.xpL6 { --xp-a: #d6c6ff; --xp-b: #7340f0; --xp-c: #c3b0ff; --xp-glow: rgba(115, 64, 240, .45); }

.xpBadge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--xp-a, #f6dcc8), var(--xp-b, #c98d63));
    color: #1b1310;
    font-size: 1.25em;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .06), 0 6px 18px rgba(0, 0, 0, .35);
}
.xpBadge.big { width: 78px; height: 78px; font-size: 2.1em; }
.xpBar { position: relative; display: block; height: 7px; overflow: hidden; border-radius: 7px; background: rgba(255, 255, 255, .09); }
.xpBar > span { display: block; height: 100%; border-radius: 7px; background: linear-gradient(90deg, var(--xp-b, #c98d63), var(--xp-a, #f6dcc8)); transition: width .6s ease; }
.xpBar.big { height: 10px; }
.xpPlus { flex-shrink: 0; padding: 3px 8px; border-radius: 10px; background: rgba(233, 196, 169, .14); color: var(--pp-nude); font-size: .78em; font-weight: 900; white-space: nowrap; }

/* carte de Mon compte */
.xpCard {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid var(--pp-line);
    border-radius: var(--pp-radius);
    background: radial-gradient(130% 160% at 0% 0%, var(--xp-glow), transparent 55%), var(--pp-surface);
    color: var(--pp-text);
}
.xpCard:hover { color: var(--pp-text); border-color: var(--pp-line-2); }
.xpCard .xpInfo { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.xpCard .xpTop { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
.xpCard strong { color: var(--xp-c); font-size: 1.1em; font-weight: 900; }
.xpCard .xpLvl, .xpCard .xpSub { color: var(--pp-muted); font-size: .8em; }
.xpCard .go { color: var(--pp-line-2); font-size: .85em; }
.xpStreak { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 12px; background: rgba(255, 140, 50, .14); color: #ffab5e; font-size: .85em; font-weight: 900; }

/* page Ma progression */
.xpPage .xpHero {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 14px 16px;
    margin-bottom: 14px;
    padding: 20px 18px;
    border: 1px solid var(--pp-line);
    border-radius: var(--pp-radius);
    background: radial-gradient(120% 140% at 0% 0%, var(--xp-glow), transparent 60%), var(--pp-surface);
}
.xpHero .xpHeroTxt { min-width: 0; }
.xpHero .xpLvl { color: var(--pp-muted); font-size: .78em; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
.xpHero h1 { margin: 2px 0; color: var(--xp-c); font-size: 1.9em; font-weight: 900; text-transform: none; letter-spacing: 0; }
.xpHero .xpTotal { color: var(--pp-text-2); font-weight: 700; }
.xpHero .xpBar, .xpHero .xpNext { grid-column: 1 / -1; }
.xpHero .xpNext { margin: 0; color: var(--pp-text-2); font-size: .9em; }
.xpStats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.xpStat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border: 1px solid var(--pp-line); border-radius: var(--pp-radius); background: var(--pp-surface); text-align: center; }
.xpStat > i { margin-bottom: 4px; color: var(--pp-nude); font-size: 1.15em; }
.xpStat > i.fa-fire-alt { color: #ffab5e; }
.xpStat strong { font-size: 1.35em; font-weight: 900; line-height: 1.1; }
.xpStat strong em { color: var(--pp-muted); font-size: .6em; font-style: normal; }
.xpStat span { color: var(--pp-text-2); font-size: .74em; line-height: 1.25; }
.xpStat small { margin-top: 3px; color: var(--pp-muted); font-size: .68em; }
.xpLevels { margin: 0; padding: 0; list-style: none; }
.xpLevels li { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--pp-line); }
.xpLevels li:first-child { border-top: 0; }
.xpLevels .xpBadge { width: 36px; height: 36px; font-size: 1em; }
.xpLevels .nm { display: flex; flex: 1; flex-direction: column; color: var(--xp-c); font-weight: 900; }
.xpLevels .nm em { color: var(--pp-muted); font-size: .72em; font-style: normal; font-weight: 700; }
.xpLevels .min { color: var(--pp-muted); font-size: .82em; white-space: nowrap; }
.xpLevels .st { width: 18px; color: var(--pp-success); text-align: center; }
.xpLevels li.current { background: rgba(255, 255, 255, .04); }
.xpLevels li.locked .xpBadge { filter: grayscale(.85) brightness(.6); }
.xpLevels li.locked .nm { color: var(--pp-muted); }
.xpLevels li.locked .st { color: var(--pp-line-2); }
.menuGroup > a.xpQuest span { flex: 1; }
.menuGroup > a.xpQuest.done span { color: var(--pp-muted); text-decoration: line-through; }
.menuGroup > a.xpQuest.done .go { color: var(--pp-success); }
.menuGroup > a.xpQuest.done .xpPlus { opacity: .5; }
.xpRules { margin: 0; padding: 0; list-style: none; }
.xpRules li { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--pp-line); font-size: .92em; }
.xpRules li:first-child { border-top: 0; }
.xpRules li > i { width: 20px; color: var(--pp-nude); text-align: center; }
.xpRules li span { flex: 1; color: var(--pp-text-2); }
.xpRules li b { color: var(--pp-nude); font-weight: 900; white-space: nowrap; }
.xpRules li.paid { background: rgba(245, 207, 98, .06); }
.xpRules li.paid > i, .xpRules li.paid b { color: #f5cf62; }
.xpNote { margin: 0; padding: 10px 16px 14px; border-top: 1px solid var(--pp-line); color: var(--pp-muted); font-size: .78em; }
.xpHist { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--pp-line); font-size: .9em; }
.menuGroup .label + .xpHist { border-top: 0; }
.xpHist > i { width: 20px; color: var(--pp-nude); text-align: center; }
.xpHist span { flex: 1; min-width: 0; overflow: hidden; color: var(--pp-text-2); text-overflow: ellipsis; white-space: nowrap; }
.xpHist time { color: var(--pp-muted); font-size: .8em; }
.xpHist.lvl span { color: var(--pp-text); font-weight: 700; }
.xpHist.lvl > i { color: #f5cf62; }
.xpEmpty { margin: 0; padding: 6px 16px 16px; color: var(--pp-muted); font-size: .9em; }
@media (max-width: 380px) {
    .xpStat span { font-size: .68em; }
}

/* bulles "+15 XP" (xp.js, dans .ppToasts) */
.ppToast.xpToast { align-items: center; border-color: rgba(233, 196, 169, .45); }
.ppToast.xpToast .xpPlus { background: linear-gradient(145deg, #f6dcc8, #c98d63); color: #1b1310; font-size: .82em; }

/* nouveau niveau (xp.js) */
.xpLevelUp {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(8, 6, 5, .72);
    backdrop-filter: blur(6px);
    animation: ppToastIn .3s ease both;
}
.xpLevelUp.out { opacity: 0; transition: opacity .3s ease; }
.xpLevelUp .box {
    position: relative;
    width: min(100%, 340px);
    padding: 30px 22px 18px;
    border: 1px solid var(--xp-glow);
    border-radius: 22px;
    background: radial-gradient(120% 90% at 50% 0%, var(--xp-glow), transparent 70%), var(--pp-surface);
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}
.xpLevelUp .xpBadge { margin-bottom: 12px; animation: xpPop .7s cubic-bezier(.2, 1.6, .4, 1) both; box-shadow: 0 0 0 6px rgba(255, 255, 255, .06), 0 0 44px var(--xp-glow); }
.xpLevelUp .k { margin: 0; color: var(--pp-muted); font-size: .8em; font-weight: 900; text-transform: uppercase; letter-spacing: 1.2px; }
.xpLevelUp h2 { margin: 4px 0 2px; color: var(--xp-c); font-size: 2em; font-weight: 900; }
.xpLevelUp .lvl { margin: 0 0 18px; color: var(--pp-text-2); }
.xpLevelUp .close { display: block; margin: 10px auto 0; padding: 8px 14px; border: 0; background: none; color: var(--pp-muted); font-size: .9em; }
@keyframes xpPop { 0% { transform: scale(.3) rotate(-25deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
