/* ── Animations de révélation (load more) ────────────────────────────────────
   Appliquées aux items au moment où le bouton les révèle.
────────────────────────────────────────────────────────────────────────────── */
@keyframes oaka-ll-slide-in {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.oaka-ll-reveal-slide {
    animation: oaka-ll-slide-in .45s ease forwards;
}

@keyframes oaka-ll-zoom-in {
    from { opacity: 0; transform: scale(.9); }
    to   { opacity: 1; transform: scale(1); }
}
.oaka-ll-reveal-zoom {
    animation: oaka-ll-zoom-in .35s ease forwards;
}

/* ── Spinner ─────────────────────────────────────────────────────────────────
   Utilisé par les loaders infinite scroll.
────────────────────────────────────────────────────────────────────────────── */
.oaka-ll-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #ddd;
    border-top-color: var(--oaka-ll-loader-color, #f48b2e);
    border-radius: 50%;
    animation: oaka-ll-spin .8s linear infinite;
}
@keyframes oaka-ll-spin {
    to { transform: rotate(360deg); }
}

/* ── Infinite scroll — sentinelle & loader ───────────────────────────────────
   La sentinelle est un div invisible dont l'apparition dans le viewport
   déclenche le chargement. Le loader apparaît pendant le fetch.
────────────────────────────────────────────────────────────────────────────── */
.oaka-ll-sentinel {
    height: 1px;
    visibility: hidden;
    pointer-events: none;
}

/* Wrapper commun — centré, sauf progress (pleine largeur) */
.oaka-ll-scroll-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 24px 0 8px;
    width: 100%;
}

/* Spinner */
/* .oaka-ll-spinner défini plus bas (partagé avec load_more) */

/* Barres ondulantes */
.oaka-ll-bars {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 36px;
}
.oaka-ll-bars span {
    display: block;
    width: 5px;
    border-radius: 3px;
    background: var(--oaka-ll-loader-color, #f48b2e);
    animation: oaka-ll-wave 1.1s ease-in-out infinite;
}
.oaka-ll-bars span:nth-child(1) { height: 20px; animation-delay: 0s; }
.oaka-ll-bars span:nth-child(2) { height: 32px; animation-delay: .1s; }
.oaka-ll-bars span:nth-child(3) { height: 16px; animation-delay: .2s; }
.oaka-ll-bars span:nth-child(4) { height: 28px; animation-delay: .3s; }
.oaka-ll-bars span:nth-child(5) { height: 22px; animation-delay: .4s; }
@keyframes oaka-ll-wave {
    0%, 100% { transform: scaleY(.35); }
    50%       { transform: scaleY(1); }
}

/* 3 points successifs */
.oaka-ll-dots {
    display: flex;
    gap: 9px;
    align-items: center;
}
.oaka-ll-dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--oaka-ll-loader-color, #f48b2e);
    opacity: .2;
    animation: oaka-ll-dot 1.2s ease-in-out infinite;
}
.oaka-ll-dots span:nth-child(1) { animation-delay: 0s; }
.oaka-ll-dots span:nth-child(2) { animation-delay: .25s; }
.oaka-ll-dots span:nth-child(3) { animation-delay: .5s; }
@keyframes oaka-ll-dot {
    0%, 70%, 100% { opacity: .2; transform: scale(1); }
    35%            { opacity: 1;  transform: scale(1.2); }
}

/* Barre de progression */
.oaka-ll-progress {
    width: 100%;
    max-width: 600px;
    height: 3px;
    background: #ececec;
    border-radius: 2px;
    overflow: hidden;
    margin: 20px auto;
}
.oaka-ll-progress-bar {
    width: 35%;
    height: 100%;
    background: var(--oaka-ll-loader-color, #f48b2e);
    border-radius: 2px;
    animation: oaka-ll-progressbar 1.4s ease-in-out infinite;
}
@keyframes oaka-ll-progressbar {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(380%); }
}

/* ── Bouton load-more ────────────────────────────────────────────────────────
   Styles de base (couleurs inlinées via wp_localize_script).
   Responsive : centré, pleine largeur sur mobile.
────────────────────────────────────────────────────────────────────────────── */
.oaka-load-more {
    display: flex;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 600px) {
    .oaka-load-more {
        width: 100%;
        justify-content: center;
    }
}
