/* ── Modal Newsletter ── */
.lind-nl-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(27, 27, 46, 0.6);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(3px);
}
.lind-nl-modal-overlay.lind-nl-modal-open {
    display: flex;
}
.lind-nl-modal-box {
    background: #fff;
    border-radius: 12px;
    border-top: 5px solid #7B2D8B;
    padding: 40px 36px 32px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    position: relative;
    animation: lind-nl-pop .25s ease;
}
@keyframes lind-nl-pop {
    from { transform: scale(.88); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
.lind-nl-modal-close {
    position: absolute;
    top: 12px; right: 14px;
    background: none;
    border: none;
    font-size: 18px;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color .15s, background .15s;
}
.lind-nl-modal-close:hover { color: #333; background: #f0e8f5; }
.lind-nl-modal-icon {
    font-size: 48px;
    margin-bottom: 16px;
    line-height: 1;
}
.lind-nl-modal-title {
    font-family: 'Playfair Display', Georgia, serif;
    color: #1b1b2e;
    font-size: 1.4rem;
    margin: 0 0 12px;
    font-weight: 700;
}
.lind-nl-modal-text {
    color: #617087;
    font-size: 1rem;
    line-height: 1.65;
    margin: 0 0 24px;
}
.lind-nl-modal-btn {
    background: #7B2D8B;
    color: #fff;
    border: none;
    padding: 12px 36px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: filter .15s;
    font-family: inherit;
}
.lind-nl-modal-btn:hover { filter: brightness(1.15); }

/* ── Widget Newsletter ── */
.lind-nl-widget {
    font-family: 'Nunito', 'Helvetica Neue', Arial, sans-serif;
}

.lind-nl-baseline {
    font-size: .95rem;
    color: #617087;
    margin: 0 0 14px;
    line-height: 1.5;
    font-style: italic;
}

.lind-nl-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lind-nl-form input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e4d8ec;
    border-radius: 4px;
    font: inherit;
    font-size: 1rem;
    color: #1b1b2e;
    box-sizing: border-box;
    transition: border-color .15s;
}

.lind-nl-form input[type="email"]:focus {
    outline: none;
    border-color: #7B2D8B;
    box-shadow: 0 0 0 2px rgba(123,45,139,.15);
}

.lind-nl-form button {
    background: #7B2D8B;
    color: #fff;
    border: none;
    padding: 11px 20px;
    border-radius: 4px;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    width: 100%;
}

.lind-nl-form button:hover {
    background: #5a1f68;
}

/* Messages de retour */
.lind-nl-msg {
    margin: 12px 0 0;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: .9rem;
    font-weight: 600;
}

.lind-nl-ok   { background: #edfbf0; color: #1a7a3a; border: 1px solid #a3e6b8; }
.lind-nl-warn { background: #fff8e1; color: #7a5c00; border: 1px solid #ffe082; }
.lind-nl-err  { background: #fdecea; color: #9b1c1c; border: 1px solid #f5a9a0; }

/* ── Page Archives Newsletters ── */
.lind-nl-archive-banner {
    width: 100%;
    overflow: hidden;
    margin-bottom: 0;
    line-height: 0;
}
.lind-nl-banner-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
}

/* Grille de cards — s'adapte à .page-content du thème */
.lind-nl-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}
@media (min-width: 1100px) {
    .lind-nl-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 540px) {
    .lind-nl-grid { grid-template-columns: 1fr; }
}

.lind-nl-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}
.lind-nl-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(123,45,139,.14);
}
.lind-nl-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Vignette */
.lind-nl-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    background: #f0eaf3;
}
.lind-nl-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.lind-nl-card:hover .lind-nl-thumb-img { transform: scale(1.04); }
.lind-nl-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7B2D8B 0%, #c05fa0 100%);
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: .05em;
}

/* Corps */
.lind-nl-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.lind-nl-edition {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #7B2D8B;
}
.lind-nl-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1b1b2e;
    margin: 0;
    line-height: 1.4;
}
.lind-nl-card-excerpt {
    font-size: .88rem;
    color: #666;
    line-height: 1.5;
    flex: 1;
}
.lind-nl-card-date {
    font-size: .78rem;
    color: #999;
    margin-top: 6px;
}

/* Pagination */
.lind-nl-pagination {
    margin-top: 48px;
    text-align: center;
}
.lind-nl-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 2px;
    border-radius: 6px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    font-size: .9rem;
    transition: background .15s, color .15s;
}
.lind-nl-pagination .page-numbers.current,
.lind-nl-pagination .page-numbers:hover {
    background: #7B2D8B;
    border-color: #7B2D8B;
    color: #fff;
}

/* Vide */
.lind-nl-empty {
    text-align: center;
    color: #888;
    font-size: 1.1rem;
    padding: 60px 0;
}

/* ── Liste archive newsletters — date sous l'extrait ── */
.lind-nl-row-date {
    font-size: .78rem;
    color: #999;
    display: block;
    margin-top: 4px;
}

/* ── Single Newsletter ── */
.lind-nl-single {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 20px 64px;
}
.lind-nl-single-wrap {}
.lind-nl-single-header {
    margin-bottom: 28px;
}
.lind-nl-single-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #1b1b2e;
    margin: 8px 0 10px;
    line-height: 1.3;
}
.lind-nl-single-date {
    font-size: .85rem;
    color: #999;
}
.lind-nl-single-thumb {
    margin-bottom: 32px;
    border-radius: 10px;
    overflow: hidden;
}
.lind-nl-single-img {
    width: 100%;
    height: auto;
    display: block;
}
.lind-nl-single-content {
    font-size: 1rem;
    line-height: 1.75;
    color: #333;
}
.lind-nl-single-content img { max-width: 100%; border-radius: 6px; }
.lind-nl-single-nav {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}
.lind-nl-back {
    color: #7B2D8B;
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
}
.lind-nl-back:hover { text-decoration: underline; }
