/* Back-to-top button — apparaît après 600px de scroll */
.back-to-top-btn {
    position: fixed;
    bottom: 24px;
    right: 80px; /* à gauche de la pastille cookie (qui est à right:24px) */
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #0F7B35;
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
    z-index: 9997;
}
.back-to-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.back-to-top-btn:hover {
    background: #15803D;
    transform: translateY(-2px);
}
.back-to-top-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* Reading progress bar (single posts) */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #0F7B35, #16A34A);
    z-index: 99999;
    transition: width 0.1s linear;
    pointer-events: none;
}
