/* ================================================================
   Auto Scroll Next Post — asnp.css
   Compatible Kadence Theme (suit les variables CSS du thème)
================================================================ */

/* ── Loader ─────────────────────────────────────────────────── */
#asnp-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: 2rem 0;
    color: var(--global-palette3, #555);
    font-size: .95rem;
}

.asnp-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: asnp-spin .7s linear infinite;
    flex-shrink: 0;
}

@keyframes asnp-spin {
    to { transform: rotate(360deg); }
}

/* ── Séparateur ─────────────────────────────────────────────── */
.asnp-separator-wrap {
    margin: 3rem 0 2rem;
}

.asnp-separator {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--global-palette4, #888);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.asnp-separator::before,
.asnp-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--global-palette7, #ddd);
}

/* ── Article chargé dynamiquement ───────────────────────────── */
.asnp-article {
    border-top: 2px solid var(--global-palette7, #e5e5e5);
    padding-top: 2.5rem;
    margin-bottom: 3rem;
    animation: asnp-fadein .4s ease both;
}

@keyframes asnp-fadein {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.asnp-article-inner {}

/* Miniature */
.asnp-thumbnail {
    margin-bottom: 1.5rem;
    border-radius: var(--global-radius, 4px);
    overflow: hidden;
}

.asnp-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Header */
.asnp-article-header {
    margin-bottom: 1.5rem;
}

.asnp-cats {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: .6rem;
}

.asnp-cats span {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--global-palette1, #1a73e8);
}

.asnp-title {
    font-size: var(--global-h2-font-size, 1.75rem);
    line-height: 1.25;
    margin: 0 0 .4rem;
}

.asnp-title a {
    color: var(--global-palette3, #1a1a1a);
    text-decoration: none;
}

.asnp-title a:hover {
    color: var(--global-palette1, #1a73e8);
}

.asnp-meta {
    font-size: .83rem;
    color: var(--global-palette4, #777);
}

/* Contenu */
.asnp-content {
    /* hérite des styles de .entry-content de Kadence */
}

/* ── Message de fin ─────────────────────────────────────────── */
.asnp-end {
    text-align: center;
    padding: 2rem 0;
    color: var(--global-palette4, #888);
    font-style: italic;
}
