-
-
Star Present
-
Accueil
+
+
+
+
+
+
+
+
+
Star Present
+ Accueil
+
+
+
+
+
+
+
+
+
+
-
-
-
diff --git a/public/css/shared.css b/public/css/shared.css
index 2454a56..88d3f7c 100644
--- a/public/css/shared.css
+++ b/public/css/shared.css
@@ -364,3 +364,178 @@ nav legend {
font-size: 10px;
}
}
+
+/* ============================================
+ SCROLL SLIDER — HOME
+ ============================================ */
+
+body.scroll-slider {
+ overflow: hidden;
+}
+
+body.scroll-slider main {
+ max-width: none;
+}
+
+.page-split {
+ display: grid;
+ grid-template-columns: 1fr 60px;
+ height: 100vh;
+ width: 100%;
+ overflow: hidden;
+}
+
+.content-side {
+ position: relative;
+ height: 100vh;
+ overflow: hidden;
+}
+
+.stack-section {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100vh;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: flex-start;
+ box-sizing: border-box;
+ padding: 60px 60px 40px 60px;
+ transition: transform 0.7s cubic-bezier(0.77, 0, 0.175, 1),
+ opacity 0.7s ease;
+}
+
+body.scroll-slider .wallpaper {
+ width: 100%;
+ height: 100%;
+ min-height: 100vh;
+ position: relative;
+ overflow: hidden;
+}
+
+body.scroll-slider .wallpaper::before {
+ content: "";
+ position: absolute;
+ inset: 0;
+ backdrop-filter: blur(6px);
+ background: rgba(7, 58, 89, 0.25);
+}
+
+body.scroll-slider #title {
+ position: relative;
+ z-index: 1;
+}
+
+#hero-section {
+ z-index: 2;
+ transform: translateY(0);
+ opacity: 1;
+}
+
+#hero-section.slide-out-up {
+ transform: translateY(-100%);
+ opacity: 0;
+ pointer-events: none;
+}
+
+#pricing {
+ z-index: 1;
+ transform: translateY(100%);
+ opacity: 0;
+}
+
+#pricing.slide-in-up {
+ transform: translateY(0);
+ opacity: 1;
+ z-index: 3;
+}
+
+#pricing.slide-out-down {
+ transform: translateY(100%);
+ opacity: 0;
+ pointer-events: none;
+}
+
+#pricing.slide-out-up {
+ transform: translateY(-100%);
+ opacity: 0;
+ pointer-events: none;
+}
+
+#footer-section {
+ z-index: 1;
+ transform: translateY(100%);
+ opacity: 0;
+ justify-content: center;
+}
+
+#footer-section.slide-in-up {
+ transform: translateY(0);
+ opacity: 1;
+ z-index: 3;
+}
+
+#footer-section.slide-out-down {
+ transform: translateY(100%);
+ opacity: 0;
+ pointer-events: none;
+}
+
+.indicator-side {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ height: 100vh;
+ position: relative;
+ z-index: 100;
+}
+
+.sticky-track {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: space-between;
+ height: 55vh;
+}
+
+.track-line {
+ width: 2px;
+ flex-grow: 1;
+ background: repeating-linear-gradient(
+ to bottom,
+ #a2cceb 0,
+ #a2cceb 5px,
+ transparent 5px,
+ transparent 10px
+ );
+ opacity: 0.2;
+}
+
+.dot {
+ width: 18px;
+ height: 18px;
+ border-radius: 50%;
+ border: 2px solid #a2cceb;
+ cursor: pointer;
+ transition: all 0.3s ease;
+ flex-shrink: 0;
+ background: transparent;
+}
+
+.dot.is-filled {
+ background: #a2cceb;
+ box-shadow: 0 0 12px rgba(162, 204, 235, 0.7);
+}
+
+.dot.is-hollow {
+ background: transparent;
+ box-shadow: none;
+}
+
+@media screen and (max-width: 768px) {
+ .stack-section { padding: 40px 20px; }
+ .page-split { grid-template-columns: 1fr 40px; }
+}
+
diff --git a/public/scripts/navbar.js b/public/scripts/navbar.js
index 7ecc70e..fc749aa 100644
--- a/public/scripts/navbar.js
+++ b/public/scripts/navbar.js
@@ -6,4 +6,183 @@ MENUBUTTON.addEventListener("click", toggleNav)
function toggleNav(){
MENUBUTTON.classList.toggle("active")
NAVIGATION.classList.toggle("active")
-}
\ No newline at end of file
+}
+
+// Scroll Slider (3 sections)
+document.addEventListener('DOMContentLoaded', () => {
+ const sections = [
+ document.getElementById('hero-section'),
+ document.getElementById('pricing'),
+ document.getElementById('footer-section')
+ ];
+
+ const dots = [
+ document.getElementById('dot-top'),
+ document.getElementById('dot-mid'),
+ document.getElementById('dot-bottom')
+ ];
+
+ if (!sections[0] || !sections[1] || !sections[2]) {
+ return;
+ }
+
+ const hashMap = ['', '#pricing', '#footer'];
+ let current = 0;
+ let isAnimating = false;
+
+ function clean(section) {
+ section.classList.remove('slide-in-up', 'slide-out-up', 'slide-out-down');
+ }
+
+ function applyStateInstant(index) {
+ sections.forEach((section, i) => {
+ section.style.transition = 'none';
+ clean(section);
+
+ if (i < index) {
+ section.classList.add('slide-out-up');
+ } else if (i === index) {
+ section.classList.add('slide-in-up');
+ }
+ });
+
+ requestAnimationFrame(() => requestAnimationFrame(() => {
+ sections.forEach(section => { section.style.transition = ''; });
+ }));
+ }
+
+ function updateDots() {
+ dots.forEach((dot, i) => {
+ if (!dot) {
+ return;
+ }
+
+ dot.classList.toggle('is-filled', i === current);
+ dot.classList.toggle('is-hollow', i !== current);
+ });
+ }
+
+ function updateHash() {
+ const hash = hashMap[current];
+ history.replaceState(null, '', hash || window.location.pathname);
+ }
+
+ function goTo(target) {
+ if (isAnimating || target === current) {
+ return;
+ }
+
+ if (target < 0 || target > sections.length - 1) {
+ return;
+ }
+
+ isAnimating = true;
+ const prev = current;
+ current = target;
+
+ if (target > prev) {
+ clean(sections[prev]);
+ sections[prev].classList.add('slide-out-up');
+
+ setTimeout(() => {
+ clean(sections[target]);
+ sections[target].classList.add('slide-in-up');
+ }, 80);
+ } else {
+ clean(sections[prev]);
+ sections[prev].classList.add('slide-out-down');
+
+ setTimeout(() => {
+ clean(sections[target]);
+ sections[target].classList.add('slide-in-up');
+ }, 80);
+ }
+
+ updateDots();
+ updateHash();
+ setTimeout(() => { isAnimating = false; }, 750);
+ }
+
+ function init() {
+ const hash = window.location.hash;
+ if (hash === '#pricing') {
+ current = 1;
+ } else if (hash === '#footer') {
+ current = 2;
+ } else {
+ current = 0;
+ }
+
+ applyStateInstant(current);
+ updateDots();
+ }
+
+ const btnToPricing = document.getElementById('btn-to-pricing');
+ const btnToHero = document.getElementById('btn-to-hero');
+ const btnToFooter = document.getElementById('btn-to-footer');
+ const btnFooterToPricing = document.getElementById('btn-footer-to-pricing');
+
+ if (btnToPricing) btnToPricing.addEventListener('click', () => goTo(1));
+ if (btnToHero) btnToHero.addEventListener('click', () => goTo(0));
+ if (btnToFooter) btnToFooter.addEventListener('click', () => goTo(2));
+ if (btnFooterToPricing) btnFooterToPricing.addEventListener('click', () => goTo(1));
+
+ dots.forEach((dot, i) => {
+ if (!dot) {
+ return;
+ }
+
+ dot.addEventListener('click', () => goTo(i));
+ });
+
+ window.addEventListener('wheel', (event) => {
+ if (isAnimating) {
+ return;
+ }
+
+ if (event.deltaY > 30) {
+ goTo(current + 1);
+ } else if (event.deltaY < -30) {
+ goTo(current - 1);
+ }
+ }, { passive: true });
+
+ let touchStartY = 0;
+ window.addEventListener('touchstart', (event) => {
+ touchStartY = event.touches[0].clientY;
+ }, { passive: true });
+
+ window.addEventListener('touchend', (event) => {
+ if (isAnimating) {
+ return;
+ }
+
+ const delta = touchStartY - event.changedTouches[0].clientY;
+ if (delta > 50) {
+ goTo(current + 1);
+ } else if (delta < -50) {
+ goTo(current - 1);
+ }
+ }, { passive: true });
+
+ window.addEventListener('keydown', (event) => {
+ if (isAnimating) {
+ return;
+ }
+
+ if (event.key === 'ArrowDown' || event.key === 'PageDown') {
+ goTo(current + 1);
+ }
+ if (event.key === 'ArrowUp' || event.key === 'PageUp') {
+ goTo(current - 1);
+ }
+ });
+
+ window.addEventListener('hashchange', () => {
+ const hash = window.location.hash;
+ const target = hash === '#pricing' ? 1 : hash === '#footer' ? 2 : 0;
+ goTo(target);
+ });
+
+ init();
+});
\ No newline at end of file