/* =============================================================================
   WCS Simple Paywall — paywall.css
   Style magazine : fondu éditorial + bloc d'appel à l'abonnement
   ============================================================================= */

/* ---------------------------------------------------------------------------
   Conteneur principal
   --------------------------------------------------------------------------- */

.wcsp-paywall-container {
    position: relative;
    overflow: hidden;
    padding-bottom: 10rem; /* espace pour le bloc modal */
}

/* ---------------------------------------------------------------------------
   Aperçu du texte
   --------------------------------------------------------------------------- */

.wcsp-preview {
    font-size: 1.08em;
    line-height: 1.8;
    position: relative;
    z-index: 1;
    color: #1c1c1c;
}

.wcsp-preview p {
    margin: 0 0 1em;
}

/* ---------------------------------------------------------------------------
   Zone de mur (fond + fondu)
   --------------------------------------------------------------------------- */

.wcsp-wall {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Fondu éditorial au-dessus du bloc */
.wcsp-fade {
    width: 100%;
    height: 160px;
    position: absolute;
    bottom: 100%;
    left: 0;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.93) 20%,
        rgba(255, 255, 255, 0.70) 52%,
        rgba(255, 255, 255, 0.00) 100%
    );
}

/* ---------------------------------------------------------------------------
   Bloc modal
   --------------------------------------------------------------------------- */

.wcsp-modal {
    width: 100%;
    background: #fff;
    padding: 1.4rem 1.5rem 1.6rem;
    text-align: center;
    border-top: 1px solid #d8d8d8;
    position: relative;
    z-index: 20;
}

/* Bandeau "SUITE RÉSERVÉE AUX ABONNÉS" */
.wcsp-modal::before {
    content: "SUITE RÉSERVÉE AUX ABONNÉS";
    display: inline-block;
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 0.12rem 0.9rem;
    line-height: 1;
    font-size: 0.65rem;
    letter-spacing: 0.13em;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 23;
}

/* Icône cadenas */
.wcsp-lock-icon {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: #c49a1a;
}

.wcsp-modal-title {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    line-height: 1.35;
    font-weight: 700;
    color: #111;
}

.wcsp-modal-desc {
    margin: 0 auto 0;
    max-width: 42rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #444;
}

/* Lien de connexion */
.wcsp-login-hint {
    margin: 0.6rem 0 0;
    font-size: 0.85rem;
    color: #666;
}

.wcsp-login-hint a {
    color: #111;
    text-decoration: underline;
}

/* ---------------------------------------------------------------------------
   Bouton
   --------------------------------------------------------------------------- */

.wcsp-btn,
.wcsp-btn:visited,
.wcsp-btn:hover,
.wcsp-btn:focus,
.wcsp-btn:active {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.72rem 1.4rem;
    background: #111;
    color: #fff !important;
    text-decoration: none;
    border-radius: 0;
    font-size: 0.87rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: opacity 0.2s ease;
    border: none;
    cursor: pointer;
}

.wcsp-btn:hover,
.wcsp-btn:focus {
    opacity: 0.82;
    outline: 2px solid #111;
    outline-offset: 2px;
}

/* ---------------------------------------------------------------------------
   Badge sur les thumbnails
   --------------------------------------------------------------------------- */

.wcsp-thumbnail-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.wcsp-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 9;
    background: rgba(17, 17, 17, 0.90);
    color: #fff;
    padding: 4px 9px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border-radius: 0;
    pointer-events: none;
}

/* ---------------------------------------------------------------------------
   Badge inline dans le titre
   --------------------------------------------------------------------------- */

.wcsp-inline-badge {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.45rem;
    padding: 1px 5px;
    background: transparent;
    color: #8c6a1f;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid currentColor;
    border-radius: 1px;
}

/* ---------------------------------------------------------------------------
   Dark mode
   --------------------------------------------------------------------------- */

@media (prefers-color-scheme: dark) {

    .wcsp-preview {
        color: #e9e9e9;
    }

    .wcsp-fade {
        background: linear-gradient(
            to top,
            rgba(20, 20, 20, 0.98) 0%,
            rgba(20, 20, 20, 0.92) 20%,
            rgba(20, 20, 20, 0.62) 52%,
            rgba(20, 20, 20, 0.00) 100%
        );
    }

    .wcsp-modal {
        background: #141414;
        border-top-color: #2a2a2a;
    }

    .wcsp-modal::before {
        background: #141414;
        color: #aaa;
    }

    .wcsp-modal-title {
        color: #f0f0f0;
    }

    .wcsp-modal-desc {
        color: #c8c8c8;
    }

    .wcsp-login-hint {
        color: #999;
    }

    .wcsp-login-hint a {
        color: #ddd;
    }

    .wcsp-btn,
    .wcsp-btn:visited,
    .wcsp-btn:hover,
    .wcsp-btn:focus,
    .wcsp-btn:active {
        background: #e8e8e8;
        color: #111 !important;
    }

    .wcsp-btn:hover,
    .wcsp-btn:focus {
        outline-color: #e8e8e8;
    }
}

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */

@media (max-width: 600px) {
    .wcsp-modal {
        padding: 1.1rem 1rem 1.3rem;
    }

    .wcsp-modal::before {
        font-size: 0.58rem;
        letter-spacing: 0.09em;
    }

    .wcsp-modal-title {
        font-size: 1rem;
    }
}
