/* Paywall Pilote Militaire — modal accès verrouillé */

.pm-paywall-dialog {
    /* `position: fixed` explicite : la feuille UA de `dialog:modal` pose déjà fixed,
       mais `position: relative` ici l'écrasait — la boîte se rendait en haut du
       document et défilait avec la page derrière le backdrop (bug mobile). `inset: 0`
       + `margin: auto` la recentre sans dépendre de la feuille UA. Le bouton fermer
       (`.pm-paywall-dialog__close`, `position: absolute`) reste positionné : `fixed`
       est aussi un containing block. */
    position: fixed;
    inset: 0;
    margin: auto;
    overscroll-behavior: contain;
    border: none;
    border-radius: 16px;
    padding: 0;
    max-width: min(480px, calc(100vw - 24px));
    width: 100%;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

/* Verrou de scroll de page pendant l'ouverture — voir pm-auth-modal.css, même règle
   posée dans les trois feuilles de dialog. */
html.pm-modal-open {
    overflow: hidden;
}

.pm-paywall-dialog::backdrop {
    background: rgba(0, 0, 0, 0.55);
}

.pm-paywall-dialog__inner {
    padding: 28px 26px 24px;
}

.pm-paywall-dialog__close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 4px 8px;
}

.pm-paywall-dialog__close:hover {
    color: #111;
}

.pm-paywall-dialog__kicker {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e85d4c;
    margin: 0 0 10px;
    font-weight: 600;
}

.pm-paywall-dialog__title {
    margin: 0 0 12px;
    font-size: 1.35rem;
    font-weight: 650;
    line-height: 1.25;
    color: #111;
}

.pm-paywall-dialog__lead {
    margin: 0 0 22px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #4b5563;
}

.pm-paywall-dialog__cta {
    display: block;
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    background: #e85d4c;
    color: #fff;
    text-align: center;
    text-decoration: none;
}

.pm-paywall-dialog__cta:hover {
    background: #d54a39;
}

.test-card--pm-locked {
    opacity: 0.55;
    cursor: pointer;
}

.test-card--pm-locked .test-card__icon > svg:first-of-type {
    opacity: 0.45;
}

.test-card--pm-locked .pm-lock-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #141414;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.test-card--pm-locked .test-card__icon {
    position: relative;
}
