diff --git a/css/parallax.css b/css/parallax.css index 9c3bdb3..9bdd3dd 100644 --- a/css/parallax.css +++ b/css/parallax.css @@ -1,7 +1,7 @@ /* ========================================================================= PARALLAX INTRO — MVA Global Fret - Page unique, fixe (pas de scroll). Vidéo Terre depuis l'espace + ligne rouge - Paris↔Antananarivo + bouton centré. Bouge à la souris. + Page unique, fixe (pas de scroll). Vidéo Terre rotative + ligne rouge 3D + Paris ↔ Antananarivo (suit la rotation du globe) + bouton centré. ========================================================================= */ :root { @@ -11,8 +11,6 @@ --gold-light: #e0c98a; --red: #ff2a3d; --white: #fff; - --mx: 0; - --my: 0; } * { box-sizing: border-box; margin: 0; padding: 0; } @@ -92,54 +90,37 @@ html, body { overflow: hidden; } +/* Video et SVG partagent EXACTEMENT le même cadrage object-fit:cover. + C'est ce qui garantit que la ligne 3D reste alignée avec la Terre. */ .layer { position: absolute; - inset: -10% -10%; + inset: 0; + width: 100%; + height: 100%; pointer-events: none; - will-change: transform; } -/* ────────────────────────────────────────────────────────────────────────── - COUCHE 1 — VIDÉO Terre depuis l'espace (Pexels 854275, libre) - Bouge le PLUS à la souris (effet de profondeur). - ────────────────────────────────────────────────────────────────────────── */ .layer-video { - width: 120%; - height: 120%; object-fit: cover; object-position: center; - filter: brightness(0.85) saturate(1.1) hue-rotate(-10deg); - transform: translate(calc(var(--mx) * -45px), calc(var(--my) * -45px)) scale(1.05); } -/* ────────────────────────────────────────────────────────────────────────── - COUCHE 2 — Voile bleu nuit (palette MVA) - ────────────────────────────────────────────────────────────────────────── */ .layer-tint { background: - radial-gradient(ellipse at center, rgba(20, 20, 50, 0.35) 0%, rgba(5, 5, 24, 0.85) 100%), - linear-gradient(180deg, rgba(10, 10, 30, 0.55) 0%, rgba(5, 5, 24, 0.7) 100%); - inset: 0; + radial-gradient(ellipse at center, transparent 0%, rgba(5, 5, 24, 0.55) 100%), + linear-gradient(180deg, rgba(5, 5, 24, 0.25) 0%, rgba(5, 5, 24, 0.5) 100%); } -/* ────────────────────────────────────────────────────────────────────────── - COUCHE 4 — Route Paris ↔ Antananarivo (ligne rouge fine) - Bouge légèrement (entre vidéo et bouton), donne une 3ème profondeur. - ────────────────────────────────────────────────────────────────────────── */ .layer-route { - inset: 0; - transform: translate(calc(var(--mx) * -12px), calc(var(--my) * -12px)); + display: block; } -.layer-route svg { width: 100%; height: 100%; display: block; } -/* ────────────────────────────────────────────────────────────────────────── - BOUTON CTA centré — "Accéder au site" - Bouge en sens INVERSE des couches → effet de tilt. - ────────────────────────────────────────────────────────────────────────── */ +/* ── BOUTON CTA centré ──────────────────────────────────────────────────── */ .cta-btn { position: absolute; top: 50%; left: 50%; + transform: translate(-50%, -50%); z-index: 10; display: inline-flex; align-items: center; @@ -159,22 +140,18 @@ html, body { 0 20px 60px rgba(197, 165, 90, 0.55), 0 0 0 0 rgba(197, 165, 90, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.45); - transition: box-shadow 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); - /* Bouge légèrement en sens opposé des couches arrière (effet 3D) */ - transform: translate( - calc(-50% + var(--mx) * 8px), - calc(-50% + var(--my) * 8px) - ); + transition: box-shadow 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), + transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); } .cta-btn:hover { + transform: translate(-50%, -50%) scale(1.04); box-shadow: 0 28px 75px rgba(197, 165, 90, 0.7), 0 0 0 12px rgba(197, 165, 90, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.55); } -/* Effet shine au hover */ .cta-btn-shine { position: absolute; top: 0; left: -120%; @@ -192,7 +169,6 @@ html, body { } .cta-btn:hover i { transform: translateX(8px); } -/* Pulse continu autour du bouton */ .cta-btn::after { content: ''; position: absolute; @@ -203,8 +179,8 @@ html, body { pointer-events: none; } @keyframes ctaPulse { - 0% { transform: scale(1); opacity: 0.7; } - 100% { transform: scale(1.18); opacity: 0; } + 0% { transform: scale(1); opacity: 0.7; } + 100% { transform: scale(1.18); opacity: 0; } } /* ── RESPONSIVE ─────────────────────────────────────────────────────────── */ @@ -222,5 +198,4 @@ html, body { @media (prefers-reduced-motion: reduce) { .cta-btn::after { animation: none; } - .layer-video, .layer-route, .cta-btn { transition: none; } } diff --git a/index.html b/index.html index 36eaf46..c4e7ccd 100644 --- a/index.html +++ b/index.html @@ -28,73 +28,50 @@
- - -
- -
- - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - + + + + - - - - - - - - - - - - - - - - - - - - - - + + + + - - - - + + + + - -
+ + - Accéder au site @@ -105,7 +82,7 @@ diff --git a/videos/earth-poster.jpg b/videos/earth-poster.jpg new file mode 100644 index 0000000..9d2d088 Binary files /dev/null and b/videos/earth-poster.jpg differ diff --git a/videos/earth-rotation.mp4 b/videos/earth-rotation.mp4 new file mode 100644 index 0000000..2dabf10 Binary files /dev/null and b/videos/earth-rotation.mp4 differ