/* ============================================================
   NEWSLETTER GATE — styles du formulaire de déblocage
   ============================================================ */

/* Masquage du contenu complet — géré en CSS pour les navigateurs
   sans JS (le JS prend le relais avec [hidden]) */
.r21-article-full {
    display: none;
}

/* JS active le contenu quand unlockContent() est appelée */
.r21-article-full[data-unlocked] {
    display: block;
}

/* ============================================================
   BLOC GATE
   ============================================================ */
.r21-gate {
    margin: 32px 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.r21-gate__inner {
    background: var(--color-bg);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius);
    padding: 32px 28px 28px;
    text-align: center;
    max-width: 540px;
    margin-inline: auto;
}

/* Titre */
h2.r21-gate__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-dark);
    line-height: 1.25;
    margin: 0 10px 10px !important;
    
}

/* Description */
.r21-gate__desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 22px;
}

/* ============================================================
   FORMULAIRE
   ============================================================ */
.r21-gate__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

/* Honeypot — invisible et inaccessible */
.r21-gate__hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
    height: 0;
    overflow: hidden;
}

/* Input email */
.r21-gate__email {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-dark);
    background: var(--color-white);
    border: 1px solid #ccc;
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.15s;
}

.r21-gate__email:focus {
    border-color: var(--color-primary);
}

.r21-gate__email::placeholder {
    color: #aaa;
}

/* Consentement */
.r21-gate__consent {
   
    align-items: flex-start;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: #555;
    line-height: 1.5;
    cursor: pointer;
}

.r21-gate__consent input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.r21-gate__consent a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Message d'erreur */
.r21-gate__error {
    background: #fff0f0;
    border: 1px solid #ffb3b3;
    border-radius: var(--radius);
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--color-red);
}

/* Bouton submit */
.r21-gate__btn {
    width: 100%;
    padding: 13px 20px;
    background: var(--color-dark);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s;
}

.r21-gate__btn:hover {
    background: var(--color-primary);
    color: var(--color-dark);
}

.r21-gate__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mention désinscription */
.r21-gate__mention {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: #999;
    text-align: center;
    margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
    .r21-gate__inner {
        padding: 24px 18px 20px;
    }

    .r21-gate__title {
        font-size: 1.25rem;
    }
}
