/* Défilement automatique + boutons (repris d'Association-Dounia, couleurs de la thèse) */
#groupeBoutonsDefilement {
    position: fixed;
    bottom: 24px;
    right: 16px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
#groupeBoutonsDefilement.visible {
    display: flex;
}
#boutonReprendreDefilement {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    border: none;
    border-radius: 30px;
    background: #1f5130;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}
#boutonReprendreDefilement:hover {
    background: #163b23;
}
#boutonReprendreHaut,
#boutonReprendreBas {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: #1f5130;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
#boutonReprendreHaut:hover,
#boutonReprendreBas:hover {
    background: #163b23;
}
/* ---- Boutons de défilement : panneau flexible (déplaçable, réductible, vitesse) ---- */
.pf-panneau{touch-action:auto}
.pf-panneau.pf-deplace{right:auto!important;bottom:auto!important}
.pf-outil{width:32px;height:32px;min-width:32px;border-radius:50%;border:1px solid rgba(255,255,255,.28);background:rgba(21,32,26,.92);color:#fff;font:700 12px/1 system-ui,Arial,sans-serif;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:0;box-shadow:0 3px 10px rgba(0,0,0,.25);transition:background .15s,transform .15s}
.pf-outil:hover{background:#2f6c2f;transform:translateY(-1px)}
.pf-poignee{cursor:grab;touch-action:none;font-size:15px;letter-spacing:-2px}
.pf-panneau.pf-glisse .pf-poignee{cursor:grabbing;background:#e9a91b}
.pf-panneau.pf-glisse{opacity:.92;transition:none}
.pf-vitesse{width:auto;padding:0 9px;border-radius:999px;font-size:12px;white-space:nowrap}
.pf-agrandir{display:none;width:48px;height:48px;font-size:20px;background:#1f5130;border:2px solid rgba(255,255,255,.35)}
.pf-panneau.pf-reduit>*{display:none!important}
.pf-panneau.pf-reduit>.pf-agrandir{display:inline-flex!important}
.pf-panneau.pf-reduit{gap:0!important}
.pf-agrandir.pf-actif::after{content:"";position:absolute;top:4px;right:4px;width:9px;height:9px;border-radius:50%;background:#4ade80;box-shadow:0 0 0 2px #1f5130}
.pf-agrandir{position:relative}
@media (max-width:600px){
  .pf-outil{width:30px;height:30px;min-width:30px;font-size:11px}
  .pf-vitesse{padding:0 7px}
  .pf-agrandir{width:44px;height:44px;font-size:18px}
}
@media print{.pf-panneau{display:none!important}}

#boutonReprendreDefilement.en-pause { background: #e9a91b; color: #15201a; }
#boutonReprendreDefilement.en-pause:hover { background: #d4970f; }
@media (max-width: 600px) {
    #boutonReprendreDefilement { padding: 10px 14px; font-size: 13px; }
    #boutonReprendreDefilement .pf-texte-long { display: none; }
    #boutonReprendreHaut, #boutonReprendreBas { width: 36px; height: 36px; font-size: 14px; }
}
@media (max-width: 480px) {
    #groupeBoutonsDefilement {
        bottom: 16px;
        right: 10px;
        gap: 8px;
    }
    #boutonReprendreDefilement {
        padding: 12px 18px;
        font-size: 14px;
    }
    #boutonReprendreHaut,
    #boutonReprendreBas {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}
