/* ============================================
   PAGES COMPTE — offre Premium et profil
   Pages : /premium, /profile (chantier mobile, lot 5)
   Composants partages : .po-* (offre), .sr-* (lignes de reglages),
   .sheet-modal (panneau bas) dans 03-components.css.
   ============================================ */

.premium-legal-link, .premium-legal-link:visited {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* Badge de formule de l'en-tete du profil (mobile) */
.pf-badge {
    flex-shrink: 0;
    padding: 2px 9px;
    border-radius: 20px;
    background: var(--color-bg-elevated);
    color: var(--color-text-secondary);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
}
.pf-badge.prem { background: var(--color-warning-subtle); color: var(--color-warning-text); }

/* Liste d'attente Premium (/premium#waitlist, paiements en pause) */
#waitlist { scroll-margin-top: calc(var(--nav-h) + 16px); }
.wl-card {
    margin: 24px 0 8px;
    padding: 24px 28px;
    border: 1px solid var(--color-border-strong);
    border-radius: 12px;
    background: var(--color-bg-surface);
}
.wl-title {
    margin-bottom: 4px;
    color: var(--color-text-primary);
    font-size: 18px;
    font-weight: 600;
}
.wl-intro {
    margin: 0 0 16px;
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 1.5;
}
.wl-body { display: flex; flex-direction: column; gap: 14px; max-width: 480px; }
/* Champ piege : hors ecran (pas display:none, que certains robots ignorent) */
.wl-hp {
    position: absolute !important;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.wl-error { margin-top: 8px; color: var(--color-danger-text); font-size: 13px; }
.wl-error:empty { display: none; }
.wl-success {
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--color-success-subtle);
    color: var(--color-success-text);
    font-size: 14px;
}
.wl-privacy {
    margin: 14px 0 0;
    color: var(--color-text-muted);
    font-size: 12.5px;
    line-height: 1.5;
}
.wl-link, .wl-link:visited { color: var(--color-primary-hover); text-decoration: underline; }
/* Profil mobile : « ✓ Inscrit » sur la liste d'attente */
.pf-wl-ok { color: var(--color-success-text); }

/* === MOBILE === */
@media (max-width: 1023.98px) {   /* bp mobile */
    /* Marge haute desktop (40 px, inline) inutile sous l'en-tete colle */
    .premium-page { margin-top: 0 !important; }
    .premium-mobile .m-acc-head > span:first-child { flex-shrink: 0; white-space: nowrap; }
    .premium-mobile .m-acc-count {
        min-width: 0;
        margin-left: 12px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .premium-terms {
        padding: 0 4px;
        color: var(--color-text-muted);
        font-size: 12.5px;
        line-height: 1.5;
    }
    .premium-terms p { margin-bottom: 8px; }
    .pf-mobile { padding-bottom: 16px; }
    /* Navbar + en-tete colle (.lhead, 56 px) */
    #waitlist { scroll-margin-top: calc(var(--nav-h) + 56px + 12px); }
    .wl-card { margin: 16px 0 12px; padding: 16px; }
    .wl-body { max-width: none; }
    .wl-body .mantine-TextInput-input { min-height: 44px; }
    .wl-body .mantine-Button-root { min-height: 44px; }
    .wl-consent { min-height: 40px; display: flex; align-items: center; }
}
