Drop the cloud-styled CTA into the intro under a parachute
Replace the gold pill with a fluffy cloud-shaped button — pill base plus five absolutely-positioned puffs (three on top, two on the bottom) all in white-to-pale-blue gradient with subtle inner shadow to read as 3D. Cradle the button in a 170px LottieFiles parachute (Elmer Vergara's "Falling Parcel", licensed under Lottie Simple, hosted in assets/parachute.lottie at 3.7 KB). The whole stack drops in from above the viewport over 1.6s with a slight overshoot, much faster than the boxes in the background video, then the parachute keeps looping in place. Mouse parallax dropped from the button — it would fight the entrance animation. Video parallax stays. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
8db37dd538
commit
25d52d6709
BIN
assets/parachute.lottie
Normal file
BIN
assets/parachute.lottie
Normal file
Binary file not shown.
138
css/parallax.css
138
css/parallax.css
@ -117,80 +117,101 @@ html, body {
|
|||||||
linear-gradient(180deg, transparent 50%, rgba(5, 5, 24, 0.35) 100%);
|
linear-gradient(180deg, transparent 50%, rgba(5, 5, 24, 0.35) 100%);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── BOUTON CTA centré ──────────────────────────────────────────────────── */
|
/* ── PARACHUTE + BOUTON-NUAGE ────────────────────────────────────────────
|
||||||
.cta-btn {
|
Le bloc tombe du haut de l'écran jusqu'au centre via translateY animé,
|
||||||
|
plus rapide que les parachutes de la vidéo (~1.6s vs 7s). Après l'atter-
|
||||||
|
rissage, le parachute Lottie continue à boucler doucement au-dessus
|
||||||
|
du nuage. Aucune parallaxe souris sur ce groupe — la chute est l'effet. */
|
||||||
|
.cta-stack {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
/* Bouge légèrement en sens INVERSE des couches → effet de tilt 3D */
|
|
||||||
transform: translate(
|
|
||||||
calc(-50% + var(--mx) * 8px),
|
|
||||||
calc(-50% + var(--my) * 8px)
|
|
||||||
);
|
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
pointer-events: none;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
animation: parachute-drop 1.6s cubic-bezier(0.34, 0.4, 0.5, 1) 0.2s both;
|
||||||
|
}
|
||||||
|
.cta-stack > * { pointer-events: auto; }
|
||||||
|
|
||||||
|
@keyframes parachute-drop {
|
||||||
|
0% { transform: translate(-50%, -130vh); opacity: 0; }
|
||||||
|
10% { opacity: 1; }
|
||||||
|
85% { transform: translate(-50%, -42%); opacity: 1; }
|
||||||
|
100% { transform: translate(-50%, -50%); }
|
||||||
|
}
|
||||||
|
|
||||||
|
.cta-parachute {
|
||||||
|
width: 170px;
|
||||||
|
height: 170px;
|
||||||
|
margin-bottom: -22px;
|
||||||
|
filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.35));
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── BOUTON-NUAGE ────────────────────────────────────────────────────────
|
||||||
|
Pill blanche moelleuse + 5 puffs en absolu pour la silhouette nuage. */
|
||||||
|
.cloud-btn {
|
||||||
|
position: relative;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 16px;
|
|
||||||
padding: 22px 56px;
|
|
||||||
background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
|
|
||||||
color: var(--navy);
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
border-radius: 50px;
|
padding: 22px 52px;
|
||||||
|
border-radius: 60px;
|
||||||
|
background: linear-gradient(180deg, #ffffff 0%, #eaf1ff 100%);
|
||||||
|
color: var(--navy);
|
||||||
font-family: 'Poppins', sans-serif;
|
font-family: 'Poppins', sans-serif;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-size: 1.1rem;
|
font-size: 1.1rem;
|
||||||
letter-spacing: 0.6px;
|
letter-spacing: 0.4px;
|
||||||
overflow: hidden;
|
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
box-shadow:
|
box-shadow:
|
||||||
0 20px 60px rgba(197, 165, 90, 0.55),
|
0 24px 70px rgba(120, 150, 220, 0.45),
|
||||||
0 0 0 0 rgba(197, 165, 90, 0.4),
|
0 6px 18px rgba(20, 20, 50, 0.18),
|
||||||
inset 0 1px 0 rgba(255, 255, 255, 0.45);
|
inset 0 -3px 8px rgba(180, 200, 235, 0.5),
|
||||||
transition: box-shadow 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
|
inset 0 2px 0 rgba(255, 255, 255, 0.95);
|
||||||
transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
|
transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
|
||||||
|
box-shadow 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
|
||||||
}
|
}
|
||||||
|
.cloud-btn:hover {
|
||||||
.cta-btn:hover {
|
transform: scale(1.04);
|
||||||
transform: translate(
|
|
||||||
calc(-50% + var(--mx) * 8px),
|
|
||||||
calc(-50% + var(--my) * 8px)
|
|
||||||
) scale(1.04);
|
|
||||||
box-shadow:
|
box-shadow:
|
||||||
0 28px 75px rgba(197, 165, 90, 0.7),
|
0 30px 85px rgba(120, 150, 220, 0.55),
|
||||||
0 0 0 12px rgba(197, 165, 90, 0.12),
|
0 10px 24px rgba(20, 20, 50, 0.22),
|
||||||
inset 0 1px 0 rgba(255, 255, 255, 0.55);
|
inset 0 -3px 8px rgba(180, 200, 235, 0.5),
|
||||||
|
inset 0 2px 0 rgba(255, 255, 255, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.cta-btn-shine {
|
/* Puffs de nuage — 5 boules positionnées autour de la pill */
|
||||||
|
.cloud-puff {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0; left: -120%;
|
background: linear-gradient(180deg, #ffffff 0%, #e7eefc 100%);
|
||||||
width: 60%; height: 100%;
|
border-radius: 50%;
|
||||||
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.65), transparent);
|
box-shadow:
|
||||||
transform: skewX(-22deg);
|
inset 0 -3px 6px rgba(180, 200, 235, 0.5),
|
||||||
transition: left 0.7s ease;
|
inset 0 2px 0 rgba(255, 255, 255, 0.9);
|
||||||
pointer-events: none;
|
z-index: 0;
|
||||||
}
|
}
|
||||||
.cta-btn:hover .cta-btn-shine { left: 130%; }
|
.cloud-puff-tl { width: 60px; height: 60px; top: -22px; left: 8%; }
|
||||||
|
.cloud-puff-tm { width: 52px; height: 52px; top: -32px; left: 50%; transform: translateX(-50%); }
|
||||||
|
.cloud-puff-tr { width: 56px; height: 56px; top: -22px; right: 8%; }
|
||||||
|
.cloud-puff-bl { width: 44px; height: 44px; bottom: -18px; left: 22%; }
|
||||||
|
.cloud-puff-br { width: 48px; height: 48px; bottom: -20px; right: 22%; }
|
||||||
|
|
||||||
.cta-btn i {
|
.cloud-content {
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 14px;
|
||||||
|
}
|
||||||
|
.cloud-content i {
|
||||||
font-size: 0.95rem;
|
font-size: 0.95rem;
|
||||||
transition: transform 0.32s ease;
|
transition: transform 0.32s ease;
|
||||||
}
|
}
|
||||||
.cta-btn:hover i { transform: translateX(8px); }
|
.cloud-btn:hover .cloud-content i { transform: translateX(6px); }
|
||||||
|
|
||||||
.cta-btn::after {
|
|
||||||
content: '';
|
|
||||||
position: absolute;
|
|
||||||
inset: -3px;
|
|
||||||
border-radius: 50px;
|
|
||||||
border: 2px solid rgba(197, 165, 90, 0.55);
|
|
||||||
animation: ctaPulse 2.8s ease-out infinite;
|
|
||||||
pointer-events: none;
|
|
||||||
}
|
|
||||||
@keyframes ctaPulse {
|
|
||||||
0% { transform: scale(1); opacity: 0.7; }
|
|
||||||
100% { transform: scale(1.18); opacity: 0; }
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
|
/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
@ -199,12 +220,15 @@ html, body {
|
|||||||
.parallax-logo img { height: 38px; }
|
.parallax-logo img { height: 38px; }
|
||||||
.lang-switcher button { padding: 5px 10px; font-size: 0.74rem; }
|
.lang-switcher button { padding: 5px 10px; font-size: 0.74rem; }
|
||||||
|
|
||||||
.cta-btn {
|
.cta-parachute { width: 130px; height: 130px; margin-bottom: -16px; }
|
||||||
padding: 16px 36px;
|
.cloud-btn { padding: 16px 34px; font-size: 0.98rem; }
|
||||||
font-size: 0.98rem;
|
.cloud-puff-tl { width: 50px; height: 50px; top: -22px; }
|
||||||
}
|
.cloud-puff-tm { width: 44px; height: 44px; top: -26px; }
|
||||||
|
.cloud-puff-tr { width: 46px; height: 46px; top: -22px; }
|
||||||
|
.cloud-puff-bl { width: 38px; height: 38px; bottom: -16px; }
|
||||||
|
.cloud-puff-br { width: 42px; height: 42px; bottom: -18px; }
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (prefers-reduced-motion: reduce) {
|
@media (prefers-reduced-motion: reduce) {
|
||||||
.cta-btn::after { animation: none; }
|
.cta-stack { animation: none; }
|
||||||
}
|
}
|
||||||
|
|||||||
22
index.html
22
index.html
@ -11,6 +11,7 @@
|
|||||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@600;700;800&display=swap" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@600;700;800&display=swap" rel="stylesheet">
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css">
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css">
|
||||||
<link rel="stylesheet" href="css/parallax.css">
|
<link rel="stylesheet" href="css/parallax.css">
|
||||||
|
<script src="https://unpkg.com/@lottiefiles/dotlottie-wc@0.6.2/dist/dotlottie-wc.js" type="module"></script>
|
||||||
</head>
|
</head>
|
||||||
<body class="parallax-body">
|
<body class="parallax-body">
|
||||||
|
|
||||||
@ -36,11 +37,22 @@
|
|||||||
|
|
||||||
<div class="layer layer-tint"></div>
|
<div class="layer layer-tint"></div>
|
||||||
|
|
||||||
<a href="accueil.html" class="cta-btn">
|
<div class="cta-stack">
|
||||||
<span class="cta-btn-shine"></span>
|
<dotlottie-wc class="cta-parachute"
|
||||||
<span data-i18n="intro.ctaBtn">Accéder au site</span>
|
src="assets/parachute.lottie"
|
||||||
<i class="fa-solid fa-arrow-right"></i>
|
autoplay loop></dotlottie-wc>
|
||||||
</a>
|
<a href="accueil.html" class="cta-btn cloud-btn">
|
||||||
|
<span class="cloud-puff cloud-puff-tl"></span>
|
||||||
|
<span class="cloud-puff cloud-puff-tm"></span>
|
||||||
|
<span class="cloud-puff cloud-puff-tr"></span>
|
||||||
|
<span class="cloud-puff cloud-puff-bl"></span>
|
||||||
|
<span class="cloud-puff cloud-puff-br"></span>
|
||||||
|
<span class="cloud-content">
|
||||||
|
<span data-i18n="intro.ctaBtn">Accéder au site</span>
|
||||||
|
<i class="fa-solid fa-arrow-right"></i>
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user