diff --git a/assets/css/public.css b/assets/css/public.css index e842b89..8df7c4d 100644 --- a/assets/css/public.css +++ b/assets/css/public.css @@ -467,6 +467,38 @@ body { color: var(--accent-primary); } +/* Bouton retour en haut */ +.scroll-top { + position: fixed; + bottom: 2rem; + right: 2rem; + background-color: var(--bg-tertiary); + color: var(--text-primary); + width: 3rem; + height: 3rem; + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; + text-decoration: none; + border: 1px solid var(--border-color); + opacity: 0; + visibility: hidden; + transition: all 0.3s ease; + cursor: pointer; + z-index: 100; +} + +.scroll-top.visible { + opacity: 1; + visibility: visible; +} + +.scroll-top:hover { + background-color: var(--accent-primary); + color: var(--text-tertiary); +} + /* Responsive */ @media (max-width: 1200px) { :root { diff --git a/chapitre.php b/chapitre.php index d66655c..da63e19 100644 --- a/chapitre.php +++ b/chapitre.php @@ -114,5 +114,30 @@ $config = Config::load();
+ + + +