/* 4.6. Boutons et contrôles spécifiques */
/* Read More Button (utilisé aussi pour pagination d'article) */
.btn-animated-read-more {
    position: relative;
    padding: 10px 20px;
    box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.4);
    color: #999;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font: 700 14px consolas;
    overflow: hidden;
    background: #142736;
    border: none;
    cursor: pointer;
    width: fit-content;
}
.btn-animated-read-more span {
    opacity: 0;
    transition: opacity 0.1s;
}
.btn-animated-read-more:hover span {
    opacity: 1;
}
.btn-animated-read-more span:nth-child(1) {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #171618, var(--color-accent));
    animation: animate1 2s linear infinite;
}
.btn-animated-read-more span:nth-child(2) {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(to bottom, #171618, var(--color-accent));
    animation: animate2 2s linear infinite;
    animation-delay: 1s;
}
.btn-animated-read-more span:nth-child(3) {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to left, #171618, var(--color-accent));
    animation: animate3 2s linear infinite;
}
.btn-animated-read-more span:nth-child(4) {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(to top, #171618, var(--color-accent));
    animation: animate4 2s linear infinite;
    animation-delay: 1s;
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    /* right: 30px; (sera défini en responsive ou ici si position fixe) */
    width: 50px;
    height: 50px;
    background-color: var(--color-accent);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: var(--z-index-scroll-top);
}
.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    /* Assigner une position horizontale, ex: right: 30px; */
    right: 30px; 
}
.scroll-top-btn:hover {
    background-color: var(--color-accent-light);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

/* Bouton retour à la liste */
.back-to-list-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    text-decoration: none;
    color: var(--color-text);
    /* Peut hériter des styles .btn-animated-read-more ou avoir les siens */
}
.back-to-list-btn i {
    margin-right: 10px;
}