<!DOCTYPE html> <html lang="fr"> <head> <meta charset="UTF-8"> <meta name="viewport"…
- User
body { font-family: 'Quicksand', sans-serif; background: #FFFFFF; color: #0a2540; display: flex; justify-content: center; overflow-x: clip; /* ★ SNAP ★ ("clip" ne casse pas l'aimant, contrairement à "hidden") */ line-height: 1.6; } body.locked { position: fixed; width: 100%; height: 100%; overflow: hidden; } .app { position: relative; width: 100%; max-width: 480px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; overflow: hidden; background: linear-gradient(180deg, #9bbadb 0%, #2d6a9f 40%, #4a9fd4 70%, #87ceeb 100%); box-shadow: 0 0 40px rgba(0,0,0,0.5); } /* ========================================= 🌟 PAGE DE CHARGEMENT (PRELOADER) ========================================= */ .preloader { position: fixed; top: 0; left: 0; right: 0; margin-left: auto; margin-right: auto; max-width: 480px; width: 100%; height: 100%; background: linear-gradient(180deg, #9bbadb 0%, #4a9fd4 70%, #87ceeb 100%); z-index: 10000; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: opacity 0.8s ease, visibility 0.8s ease; } .preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; } .loader-snowflake { font-size: 4em; color: #ffffff; animation: spin 2s linear infinite, float 2s ease-in-out infinite; text-shadow: 0 0 20px rgba(255,255,255,0.8), 0 0 40px rgba(135,206,250,0.6); margin-bottom: 20px; } .loader-text { font-family: 'Great Vibes', cursive; font-size: 2em; color: #ffffff; text-shadow: 0 2px 10px rgba(0,0,0,0.3); animation: fadeInOut 2s infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .page-section { min-height: 100vh; min-height: 100dvh; /* ★ SNAP ★ vraie hauteur sur mobile */ scroll-snap-align: start; /* ★ SNAP ★ l'aimant (pages 2 et 3) */ display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 60px 20px; position: relative; } /* ========================================= 🚪 PORTES D'OUVERTURE (Overlay) ========================================= */ .ice-door-overlay { position: fixed; top: 0; left: 0; right: 0; margin-left: auto; margin-right: auto; max-width: 480px; width: 100%; height: 100%; background: linear-gradient(180deg, #9bbadb 0%, #4a9fd4 70%, #87ceeb 100%); z-index: 9999; display: flex; justify-content: center; align-items: center; perspective: 3000px; overflow: hidden; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; } .ice-door-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 1s ease 1.5s; } .ice-door-panel { position: absolute; top: 0; width: 50%; height: 100%; background-size: cover; background-position: center; background-repeat: no-repeat; transition: transform 1.8s cubic-bezier(0.4, 0, 0.2, 1); z-index: 2; box-shadow: inset 0 0 100px rgba(0,0,0,0.3); overflow: hidden; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; outline: none; transform-style: preserve-3d; } .ice-door-left { left: 0; transform-origin: left center; background-image: url('elsagauche.jpg'); border-right: 2px solid rgba(192,192,192,0.5); } .ice-door-right { right: 0; transform-origin: right center; background-image: url('elsadroit.jpg'); border-left: 2px solid rgba(192,192,192,0.5); } .center-line { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 4px; height: 100%; background: linear-gradient(180deg, transparent 0%, #ffffff 20%, #c0c0c0 50%, #ffffff 80%, transparent 100%); box-shadow: 0 0 20px #ffffff, 0 0 40px #87ceeb; z-index: 3; transition: opacity 0.5s ease; } .door-text { position: absolute; bottom: 8%; left: 50%; transform: translateX(-50%); font-family: 'Great Vibes', cursive; font-size: 2.5em; color: #ffffff; text-shadow: 0 0 20px rgba(135,206,250,1), 0 2px 10px rgba(0,0,0,0.8); z-index: 5; animation: fadeInOut 2s infinite; white-space: nowrap; text-align: center; pointer-events: none; background: rgba(0,0,0,0.3); padding: 10px 30px; border-radius: 30px; backdrop-filter: blur(5px); } @keyframes fadeInOut { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } } .sparkle { position: absolute; background: #fff; border-radius: 50%; box-shadow: 0 0 10px #fff, 0 0 20px #87ceeb; z-index: 6; animation: floatSparkle 3s infinite ease-in-out; pointer-events: none; } @keyframes floatSparkle { 0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; } 50% { transform: translateY(-20px) scale(1.5); opacity: 1; } } .ice-door-overlay.open .ice-door-left { transform: rotateY(-105deg); } .ice-door-overlay.open .ice-door-right { transform: rotateY(105deg); } .ice-door-overlay.open .center-line, .ice-door-overlay.open .door-text, .ice-door-overlay.open .sparkle { opacity: 0; pointer-events: none; transition: opacity 0.5s ease; } .ice-door-panel { cursor: pointer; } /* ========================================= SITE PRINCIPAL ========================================= */ .main-content { opacity: 0; transition: opacity 1.5s ease; } .main-content.visible { opacity: 1; } .snowflakes { position: fixed; top: 0; left: 0; right: 0; margin-left: auto; margin-right: auto; max-width: 480px; width: 100%; height: 100%; pointer-events: none; z-index: 1000; } .snowflake { position: absolute; top: -10px; color: #fff; animation: fall linear infinite; opacity: 0.8; } @keyframes fall { 0% { transform: translateY(-10px) rotate(0deg); opacity: 1; } 100% { transform: translateY(100vh) rotate(360deg); opacity: 0.3; } } @keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } @keyframes shimmer { 0% { background-position: -1000px 0; } 100% { background-position: 1000px 0; } } @keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-15px); } } @keyframes iceGlow { 0%, 100% { filter: drop-shadow(0 0 8px rgba(173,216,230,0.8)) drop-shadow(0 0 15px rgba(135,206,250,0.5)); } 50% { filter: drop-shadow(0 0 15px rgba(173,216,230,1)) drop-shadow(0 0 25px rgba(135,206,250,0.8)); } } @keyframes iconFloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-5px) rotate(3deg); } } @keyframes photoGlow { 0%, 100% { box-shadow: 0 0 20px rgba(135,206,250,0.4), 0 0 40px rgba(173,216,230,0.3); } 50% { box-shadow: 0 0 30px rgba(135,206,250,0.6), 0 0 60px rgba(173,216,230,0.5); } } /* ========================================= PAGE 1 : HERO ★ TOUT EN clamp(...vh...) POUR TENIR EN 1 ÉCRAN ★ ========================================= */ .hero { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 3vh 18px 0; position: relative; scroll-snap-align: start; /* ★ SNAP ★ l'aimant (page 1) */ background-image: url('elzazvzeveveeeev.jpg'); background-size: cover; background-position: center top; background-repeat: no-repeat; background-attachment: scroll; background-color: #0a1628; } .hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, rgba(184,208,232,0.6) 0%, rgba(168,200,224,0.7) 50%, rgba(152,184,216,0.8) 100%); z-index: 1; } .frozen-frame { max-width: 600px; width: 100%; background: transparent; border: none; border-radius: 0; padding: 1vh 16px; animation: fadeInUp 1s ease-out; position: relative; z-index: 2; } .invitation-text { font-family: 'Great Vibes', cursive; font-size: clamp(1.1rem, 3.2vh, 1.9rem); color: #0f2b4d; margin: 1vh 0; animation: fadeInUp 1s ease-out, iceGlow 3s ease-in-out infinite; text-shadow: 0 2px 15px rgba(0,0,0,0.7), 0 0 30px rgba(135,206,250,0.5); } .hero h1 { font-family: 'Cinzel Decorative', serif; font-size: clamp(1.5rem, 5.2vh, 2.8rem); font-weight: 900; line-height: 1.1; background: linear-gradient(90deg, #0a2540 0%, #ffffff 25%, #0a2540 50%, #ffffff 75%, #0a2540 100%); background-size: 1000px 100%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 4s infinite, fadeInUp 1s ease-out 0.3s both; margin-bottom: 0.5vh; letter-spacing: 2px; filter: drop-shadow(0 2px 4px rgba(10,37,64,0.6)); } .hero h2 { font-family: 'Quicksand', sans-serif; font-size: clamp(0.85rem, 2.4vh, 1.3rem); font-weight: 600; color: #0f2b4d; margin-bottom: 1vh; animation: fadeInUp 1s ease-out 0.5s both; letter-spacing: 2px; text-shadow: 0 0 10px rgba(255,255,255,0.6); } .birthday-photo-container { display: flex; justify-content: center; margin: 1.5vh 0; animation: fadeInUp 1s ease-out 0.8s both; } .birthday-photo { width: clamp(110px, 21vh, 210px); height: clamp(110px, 21vh, 210px); border-radius: 50%; overflow: hidden; border: 5px solid rgba(173,216,230,0.8); box-shadow: 0 0 30px rgba(135,206,250,0.5); animation: photoGlow 3s ease-in-out infinite, float 4s ease-in-out infinite; position: relative; } .birthday-photo img { width: 100%; height: 100%; object-fit: cover; display: block; } .birthday-photo::before { content: ''; position: absolute; top: -10px; left: -10px; right: -10px; bottom: -10px; border-radius: 50%; border: 2px solid rgba(135,206,250,0.4); animation: shimmer 3s infinite; pointer-events: none; } .age-badge { display: inline-block; font-family: 'Cinzel Decorative', serif; font-size: clamp(2.8rem, 9vh, 5.5rem); font-weight: 900; line-height: 1; background: linear-gradient(135deg, #87ceeb 0%, #ffffff 50%, #add8e6 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: float 3s ease-in-out infinite, fadeInUp 1s ease-out 0.7s both, iceGlow 3s ease-in-out infinite; margin: 1vh 0; position: relative; filter: drop-shadow(0 0 25px rgba(135,206,250,0.8)) drop-shadow(0 3px 10px rgba(0,0,0,0.5)); } .age-badge::after { display: none; } .characters-row { display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 3vw, 30px); margin: 1vh 0 0; animation: fadeInUp 1s ease-out 0.9s both; } .characters-row svg { width: clamp(36px, 6.5vh, 58px); height: auto; } .character-icon { animation: iconFloat 3s ease-in-out infinite; } .character-icon:nth-child(1) { animation-delay: 0s; } .character-icon:nth-child(2) { animation-delay: 0.5s; } .character-icon:nth-child(3) { animation-delay: 1s; } .scroll-indicator { position: absolute !important; bottom: 2.5vh !important; left: 50% !important; transform: translateX(-50%) !important; color: #0a2540; font-size: clamp(0.85rem, 2.2vh, 1.1rem); font-weight: 600; animation: float 2s infinite ease-in-out; z-index: 10; cursor: pointer; text-decoration: none; white-space: nowrap; text-align: center; background: rgba(255,255,255,0.85); padding: 8px 24px; border-radius: 30px; backdrop-filter: blur(5px); box-shadow: 0 4px 15px rgba(0,0,0,0.15); display: inline-flex; align-items: center; gap: 8px; } /* ========================================= PAGE 2 : COMPTE À REBOURS + DÉTAILS ========================================= */ .page-two { background: linear-gradient(180deg, #B8D0E8 0%, #A8C8E0 50%, #98B8D8 100%); } .countdown-section { text-align: center; padding: 40px 20px; width: 100%; max-width: 900px; } .countdown-title { font-family: 'Cinzel Decorative', serif; font-size: 2.5em; font-weight: 700; color: #0a2540; margin-bottom: 40px; letter-spacing: 3px; text-transform: uppercase; text-shadow: 0 0 10px rgba(255,255,255,0.5); } .countdown { display: flex; justify-content: center; align-items: center; gap: 15px; flex-wrap: nowrap; margin-bottom: 60px; } .countdown-item { background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 100%); border: 2px solid rgba(255,255,255,0.6); border-radius: 20px; padding: 20px 10px; min-width: 80px; max-width: 120px; flex: 1; text-align: center; animation: fadeInUp 1s ease-out; box-shadow: 0 10px 30px rgba(135,206,250,0.2); transition: all 0.3s ease; backdrop-filter: blur(5px); } .countdown-item:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 15px 40px rgba(135,206,250,0.4); border-color: #fff; } .countdown-number { font-family: 'Cinzel', serif; font-size: 2.2em; font-weight: 900; color: #0f2b4d; display: block; line-height: 1; margin-bottom: 5px; text-shadow: 0 0 10px rgba(255,255,255,0.6); } .countdown-label { font-family: 'Quicksand', sans-serif; font-size: 0.75em; color: #1a3a5c; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; } .details-section { width: 100%; max-width: 900px; padding: 20px; } .section-title { font-family: 'Cinzel Decorative', serif; font-size: 2.8em; font-weight: 700; color: #0a2540; text-align: center; margin-bottom: 40px; letter-spacing: 3px; text-transform: uppercase; text-shadow: 0 0 10px rgba(255,255,255,0.5); position: relative; padding-bottom: 20px; } .section-title::after { display: none !important; } .detail-card { background: rgba(255,255,255,0.3); border: 2px solid rgba(255,255,255,0.5); border-radius: 25px; padding: 40px; backdrop-filter: blur(10px); animation: fadeInUp 1s ease-out; box-shadow: 0 15px 40px rgba(135,206,250,0.15); } .detail-item { display: flex; align-items: center; margin-bottom: 30px; font-size: 1.1em; padding: 15px; border-radius: 15px; transition: all 0.3s ease; } .detail-item:hover { background: rgba(255,255,255,0.4); transform: translateX(10px); } .detail-item:last-child { margin-bottom: 0; } .detail-icon { margin-right: 25px; min-width: 60px; text-align: center; display: flex; justify-content: center; align-items: center; } .detail-icon svg { width: 50px; height: 50px; filter: drop-shadow(0 0 3px rgba(255,255,255,0.8)) brightness(1.2) contrast(1.1); transition: all 0.3s ease; } .detail-item:hover .detail-icon svg { transform: scale(1.15) rotate(-5deg); filter: drop-shadow(0 0 15px rgba(135,206,250,1)); } .detail-content { flex: 1; } .detail-content strong { font-family: 'Cinzel Decorative', serif; color: #0f2b4d; display: block; margin-bottom: 5px; font-size: 1.1em; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; } .detail-content span { font-family: 'Quicksand', sans-serif; color: #1a3a5c; font-size: 1em; font-weight: 500; line-height: 1.5; } .dress-code-text { margin-top: 8px; margin-bottom: 12px; text-align: center; } .dress-code-text p { margin: 5px 0; font-size: 1.05em; line-height: 1.6; color: #1a3a5c; } .dress-subtitle { font-size: 0.95em !important; font-weight: 500; color: #2d5a7a; margin-top: 8px !important; } .color-circles { display: flex; justify-content: center; gap: 12px; margin-top: 12px; } .color-circle { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.8); box-shadow: 0 3px 8px rgba(0,0,0,0.15); transition: transform 0.3s ease; } .color-circle:hover { transform: scale(1.15); } /* ========================================= PAGE 3 : LOCALISATION + FOOTER ========================================= */ .page-three { background: linear-gradient(180deg, #98B8D8 0%, #A8C8E0 50%, #B8D0E8 100%); } .map-section { width: 100%; max-width: 900px; text-align: center; padding: 40px 20px; } .map-container { border-radius: 25px; overflow: hidden; border: 3px solid rgba(255,255,255,0.6); box-shadow: 0 15px 50px rgba(135,206,250,0.3); } .map-container iframe { width: 100%; height: 400px; border: none; } .footer { width: 100%; text-align: center; padding: 40px 20px; border-top: 2px solid rgba(255,255,255,0.4); background: rgba(168,200,224,0.5); margin-top: 40px; } .footer .frozen-message { font-family: 'Great Vibes', cursive; font-size: 2.2em; color: #0a2540; margin-bottom: 10px; text-shadow: 0 0 10px rgba(255,255,255,0.6); } .footer p:last-child { font-family: 'Quicksand', sans-serif; font-size: 0.95em; color: #1a3a5c; font-weight: 500; letter-spacing: 1px; } .footer .characters-footer { display: flex; justify-content: center; gap: 20px; margin: 15px 0; } .footer .characters-footer svg { width: 50px; height: 50px; animation: iconFloat 3s ease-in-out infinite; } .footer .characters-footer svg:nth-child(1) { animation-delay: 0s; } .footer .characters-footer svg:nth-child(2) { animation-delay: 0.5s; } .footer .characters-footer svg:nth-child(3) { animation-delay: 1s; } /* ========================================= RESPONSIVE ========================================= */ @media (max-width: 768px) { .ice-door-panel { background-size: cover !important; background-position: center 20% !important; } .ice-door-left { background-position: right 20% center !important; } .ice-door-right { background-position: left 20% center !important; } .door-text { font-size: 1.3em !important; bottom: 2% !important; padding: 6px 12px !important; } .countdown { gap: 8px; } .countdown-item { min-width: 65px !important; max-width: 90px !important; padding: 15px 5px !important; } .countdown-number { font-size: 1.6em !important; } .countdown-label { font-size: 0.6em !important; letter-spacing: 0.5px; } .countdown-title, .section-title { font-size: 1.6em; } .detail-card { padding: 25px 15px; } .detail-item { flex-direction: column; text-align: center; } .detail-icon { margin-right: 0; margin-bottom: 15px; } .detail-icon svg { width: 45px; height: 45px; } .footer .frozen-message { font-size: 1.6em; } .color-circle { width: 35px; height: 35px; } .dress-code-text p { font-size: 1em; } .dress-subtitle { font-size: 0.9em !important; } } </style><!-- 🌟 PRELOADER --> <div id="preloader" class="preloader"> <div class="loader-snowflake">❄️</div> <div class="loader-text">Préparation du royaume de glace...</div> </div> <!-- 🚪 PORTES --> <div class="ice-door-overlay" id="iceDoorOverlay"> <div class="ice-door-panel ice-door-left"></div> <div class="ice-door-panel ice-door-right"></div> <div class="center-line"></div> <div class="door-text"> Cliquez pour ouvrir les portes du royaume </div> <div class="sparkle" style="top: 20%; left: 15%; width: 6px; height: 6px; animation-delay: 0s;"></div> <div class="sparkle" style="top: 30%; right: 20%; width: 8px; height: 8px; animation-delay: 1s;"></div> <div class="sparkle" style="top: 60%; left: 25%; width: 5px; height: 5px; animation-delay: 2s;"></div> <div class="sparkle" style="top: 70%; right: 15%; width: 7px; height: 7px; animation-delay: 0.5s;"></div> <div class="sparkle" style="top: 40%; left: 10%; width: 4px; height: 4px; animation-delay: 1.5s;"></div> <div class="sparkle" style="top: 80%; right: 30%; width: 6px; height: 6px; animation-delay: 2.5s;"></div> </div> <!-- conteneur "forme téléphone" --> <div class="app"> <div class="main-content" id="mainContent"> <div class="snowflakes" id="snowflakes"></div> <!-- PAGE 1 --> <section class="hero" id="page1"> <div class="frozen-frame"> <p class="invitation-text">Vous êtes invité(e) au royaume de glace</p> <h1>Sophie Laurent</h1> <h2>fête son anniversaire enchanté</h2> <div class="birthday-photo-container"> <div class="birthday-photo"><img src="fillephoto.jpg" alt="Sophie Laurent"></div> </div> <div class="age-badge">6</div> <div class="characters-row"> <div class="character-icon"> <svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <path d="M30 35 L35 20 L42 28 L50 15 L58 28 L65 20 L70 35 Z" fill="#87ceeb" stroke="#fff" stroke-width="1.5"/> <circle cx="50" cy="22" r="2" fill="#fff"/><circle cx="35" cy="28" r="1.5" fill="#fff"/><circle cx="65" cy="28" r="1.5" fill="#fff"/> <ellipse cx="50" cy="50" rx="18" ry="22" fill="#fde8d0"/> <path d="M32 45 Q30 30 50 28 Q70 30 68 45 Q68 55 65 60 L65 75 Q50 80 35 75 L35 60 Q32 55 32 45 Z" fill="#e8d5a8"/> <ellipse cx="44" cy="48" rx="2" ry="2.5" fill="#4a9fd4"/><ellipse cx="56" cy="48" rx="2" ry="2.5" fill="#4a9fd4"/> <circle cx="44.5" cy="47.5" r="0.7" fill="#fff"/><circle cx="56.5" cy="47.5" r="0.7" fill="#fff"/> <path d="M45 58 Q50 61 55 58" stroke="#c97a7a" stroke-width="1.5" fill="none" stroke-linecap="round"/> <path d="M35 72 Q30 85 28 95 L72 95 Q70 85 65 72 Q50 78 35 72 Z" fill="#87ceeb" stroke="#fff" stroke-width="1"/> <path d="M75 20 L77 25 L82 25 L78 28 L80 33 L75 30 L70 33 L72 28 L68 25 L73 25 Z" fill="#fff" opacity="0.9"/> </svg> </div> <div class="character-icon"> <svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <circle cx="50" cy="75" r="20" fill="#fff" stroke="#add8e6" stroke-width="1"/> <circle cx="50" cy="50" r="16" fill="#fff" stroke="#add8e6" stroke-width="1"/> <circle cx="50" cy="30" r="12" fill="#fff" stroke="#add8e6" stroke-width="1"/> <rect x="42" y="15" width="16" height="12" fill="#2d2d2d" rx="1"/><rect x="38" y="25" width="24" height="3" fill="#2d2d2d" rx="1"/> <circle cx="45" cy="28" r="2" fill="#2d2d2d"/><circle cx="55" cy="28" r="2" fill="#2d2d2d"/> <path d="M50 32 L50 40 L54 36 Z" fill="#ff8c42"/> <circle cx="44" cy="36" r="0.8" fill="#2d2d2d"/><circle cx="47" cy="38" r="0.8" fill="#2d2d2d"/><circle cx="50" cy="39" r="0.8" fill="#2d2d2d"/><circle cx="53" cy="38" r="0.8" fill="#2d2d2d"/><circle cx="56" cy="36" r="0.8" fill="#2d2d2d"/> <circle cx="50" cy="55" r="1.5" fill="#2d2d2d"/><circle cx="50" cy="62" r="1.5" fill="#2d2d2d"/><circle cx="50" cy="69" r="1.5" fill="#2d2d2d"/> <path d="M34 50 L20 45 M20 45 L15 40 M20 45 L18 50" stroke="#8b6f47" stroke-width="2" fill="none" stroke-linecap="round"/> <path d="M66 50 L80 45 M80 45 L85 40 M80 45 L82 50" stroke="#8b6f47" stroke-width="2" fill="none" stroke-linecap="round"/> <path d="M38 42 Q50 46 62 42 L62 48 Q50 52 38 48 Z" fill="#4a9fd4"/> <path d="M58 48 L60 60 L55 60 L54 48 Z" fill="#4a9fd4"/> <path d="M20 15 L22 20 L27 20 L23 23 L25 28 L20 25 L15 28 L17 23 L13 20 L18 20 Z" fill="#fff" opacity="0.9"/> </svg> </div> <div class="character-icon"> <svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <path d="M45 30 L40 15 L35 18 M40 15 L42 8" stroke="#8b6f47" stroke-width="2.5" fill="none" stroke-linecap="round"/> <path d="M55 30 L60 15 L65 18 M60 15 L58 8" stroke="#8b6f47" stroke-width="2.5" fill="none" stroke-linecap="round"/> <circle cx="35" cy="18" r="1.5" fill="#8b6f47"/><circle cx="42" cy="8" r="1.5" fill="#8b6f47"/><circle cx="65" cy="18" r="1.5" fill="#8b6f47"/><circle cx="58" cy="8" r="1.5" fill="#8b6f47"/> <ellipse cx="50" cy="40" rx="14" ry="16" fill="#c8956c"/> <ellipse cx="50" cy="48" rx="8" ry="6" fill="#e8c9a8"/> <circle cx="44" cy="38" r="2.5" fill="#fff"/><circle cx="56" cy="38" r="2.5" fill="#fff"/> <circle cx="44" cy="38" r="1.5" fill="#2d2d2d"/><circle cx="56" cy="38" r="1.5" fill="#2d2d2d"/> <circle cx="44.5" cy="37.5" r="0.5" fill="#fff"/><circle cx="56.5" cy="37.5" r="0.5" fill="#fff"/> <ellipse cx="50" cy="46" rx="2" ry="1.5" fill="#2d2d2d"/> <path d="M46 50 Q50 52 54 50" stroke="#2d2d2d" stroke-width="1" fill="none" stroke-linecap="round"/> <ellipse cx="38" cy="32" rx="3" ry="5" fill="#c8956c" transform="rotate(-20 38 32)"/> <ellipse cx="62" cy="32" rx="3" ry="5" fill="#c8956c" transform="rotate(20 62 32)"/> <ellipse cx="50" cy="75" rx="22" ry="18" fill="#c8956c"/> <rect x="35" y="85" width="5" height="12" fill="#a87850" rx="2"/><rect x="45" y="88" width="5" height="10" fill="#a87850" rx="2"/><rect x="55" y="88" width="5" height="10" fill="#a87850" rx="2"/><rect x="63" y="85" width="5" height="12" fill="#a87850" rx="2"/> <ellipse cx="72" cy="72" rx="4" ry="3" fill="#a87850"/> <path d="M80 20 L82 25 L87 25 L83 28 L85 33 L80 30 L75 33 L77 28 L73 25 L78 25 Z" fill="#fff" opacity="0.9"/> </svg> </div> </div> </div> <a href="#page2" class="scroll-indicator">Découvrir ▼</a> </section> <!-- PAGE 2 --> <section class="page-section page-two" id="page2"> <div class="countdown-section"> <h2 class="countdown-title">Compte à rebours</h2> <div class="countdown" id="countdown"> <div class="countdown-item"><span class="countdown-number" id="days">00</span><span class="countdown-label">Jours</span></div> <div class="countdown-item"><span class="countdown-number" id="hours">00</span><span class="countdown-label">Heures</span></div> <div class="countdown-item"><span class="countdown-number" id="minutes">00</span><span class="countdown-label">Minutes</span></div> <div class="countdown-item"><span class="countdown-number" id="seconds">00</span><span class="countdown-label">Secondes</span></div> </div> </div> <div class="details-section"> <h2 class="section-title">Détails de la Fête</h2> <div class="detail-card"> <div class="detail-item"> <div class="detail-icon"> <svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"> <rect x="8" y="14" width="48" height="42" rx="4" fill="#87ceeb" stroke="#fff" stroke-width="2"/> <rect x="8" y="14" width="48" height="12" rx="4" fill="#4a9fd4"/> <line x1="20" y1="8" x2="20" y2="20" stroke="#fff" stroke-width="3" stroke-linecap="round"/> <line x1="44" y1="8" x2="44" y2="20" stroke="#fff" stroke-width="3" stroke-linecap="round"/> <circle cx="20" cy="36" r="2" fill="#fff"/><circle cx="32" cy="36" r="2" fill="#fff"/><circle cx="44" cy="36" r="2" fill="#fff"/> <circle cx="20" cy="46" r="2" fill="#fff"/><circle cx="32" cy="46" r="2" fill="#fff"/><circle cx="44" cy="46" r="2" fill="#fff"/> <rect x="28" y="32" width="8" height="8" rx="1" fill="#fff" opacity="0.9"/> </svg> </div> <div class="detail-content"><strong>Date</strong><span>Samedi 25 Juillet 2026</span></div> </div> <div class="detail-item"> <div class="detail-icon"> <svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"> <circle cx="32" cy="32" r="26" fill="#87ceeb" stroke="#fff" stroke-width="2"/> <circle cx="32" cy="32" r="22" fill="#4a9fd4"/> <circle cx="32" cy="32" r="2" fill="#fff"/> <line x1="32" y1="32" x2="32" y2="18" stroke="#fff" stroke-width="2.5" stroke-linecap="round"/> <line x1="32" y1="32" x2="42" y2="32" stroke="#fff" stroke-width="2.5" stroke-linecap="round"/> <circle cx="32" cy="12" r="1.5" fill="#fff"/><circle cx="32" cy="52" r="1.5" fill="#fff"/> <circle cx="12" cy="32" r="1.5" fill="#fff"/><circle cx="52" cy="32" r="1.5" fill="#fff"/> </svg> </div> <div class="detail-content"><strong>Heure</strong><span>À partir de 14h00</span></div> </div> <div class="detail-item"> <div class="detail-icon"> <svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"> <path d="M32 6 C20 6 12 14 12 24 C12 38 32 58 32 58 C32 58 52 38 52 24 C52 14 44 6 32 6 Z" fill="#87ceeb" stroke="#fff" stroke-width="2"/> <circle cx="32" cy="24" r="8" fill="#4a9fd4" stroke="#fff" stroke-width="2"/> <circle cx="32" cy="24" r="3" fill="#fff"/> </svg> </div> <div class="detail-content"><strong>Lieu</strong><span>Salle des Fêtes "Le Palais de Glace"<br>15 Rue de Rivoli, 75004 Paris</span></div> </div> <div class="detail-item"> <div class="detail-icon"> <svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"> <path d="M24 12 L40 12 L44 20 L40 22 L42 52 L22 52 L24 22 L20 20 Z" fill="#87ceeb" stroke="#fff" stroke-width="2" stroke-linejoin="round"/> <path d="M28 12 L28 20 M36 12 L36 20" stroke="#fff" stroke-width="1.5"/> <path d="M26 30 L38 30 M25 38 L39 38 M24 46 L40 46" stroke="#fff" stroke-width="1" opacity="0.7"/> <circle cx="32" cy="16" r="2" fill="#fff"/> </svg> </div> <div class="detail-content"> <strong>Dress Code</strong> <div class="dress-code-text"> <p>Tenue chic pour grands et petits</p> <p class="dress-subtitle">(Bleu , Argent, Blanc)</p> </div> <div class="color-circles"> <div class="color-circle" style="background: linear-gradient(135deg, #87ceeb, #4a9fd4);"></div> <div class="color-circle" style="background: linear-gradient(135deg, #c0c0c0, #e8e8e8);"></div> <div class="color-circle" style="background: linear-gradient(135deg, #add8e6, #ffffff);"></div> </div> </div> </div> </div> </div> </section> <!-- PAGE 3 --> <section class="page-section page-three" id="page3"> <div class="map-section"> <h2 class="section-title">Localisation</h2> <div class="map-container"> <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2624.9914406081493!2d2.3367!3d48.8606!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x47e66e1f06e2b70f%3A0x40b82c3688c9460!2s15%20Rue%20de%20Rivoli%2C%2075004%20Paris!5e0!3m2!1sfr!2sfr!4v1234567890" allowfullscreen="" loading="lazy"></iframe> </div> </div> <footer class="footer"> <div class="characters-footer"> <svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <path d="M30 35 L35 20 L42 28 L50 15 L58 28 L65 20 L70 35 Z" fill="#87ceeb" stroke="#fff" stroke-width="1.5"/> <ellipse cx="50" cy="50" rx="18" ry="22" fill="#fde8d0"/> <path d="M32 45 Q30 30 50 28 Q70 30 68 45 Q68 55 65 60 L65 75 Q50 80 35 75 L35 60 Q32 55 32 45 Z" fill="#e8d5a8"/> <ellipse cx="44" cy="48" rx="2" ry="2.5" fill="#4a9fd4"/><ellipse cx="56" cy="48" rx="2" ry="2.5" fill="#4a9fd4"/> <path d="M45 58 Q50 61 55 58" stroke="#c97a7a" stroke-width="1.5" fill="none" stroke-linecap="round"/> <path d="M35 72 Q30 85 28 95 L72 95 Q70 85 65 72 Q50 78 35 72 Z" fill="#87ceeb" stroke="#fff" stroke-width="1"/> </svg> <svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <circle cx="50" cy="75" r="20" fill="#fff" stroke="#add8e6" stroke-width="1"/> <circle cx="50" cy="50" r="16" fill="#fff" stroke="#add8e6" stroke-width="1"/> <circle cx="50" cy="30" r="12" fill="#fff" stroke="#add8e6" stroke-width="1"/> <rect x="42" y="15" width="16" height="12" fill="#2d2d2d" rx="1"/><rect x="38" y="25" width="24" height="3" fill="#2d2d2d" rx="1"/> <circle cx="45" cy="28" r="2" fill="#2d2d2d"/><circle cx="55" cy="28" r="2" fill="#2d2d2d"/> <path d="M50 32 L50 40 L54 36 Z" fill="#ff8c42"/> <path d="M38 42 Q50 46 62 42 L62 48 Q50 52 38 48 Z" fill="#4a9fd4"/> </svg> <svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <path d="M45 30 L40 15 L35 18 M40 15 L42 8" stroke="#8b6f47" stroke-width="2.5" fill="none" stroke-linecap="round"/> <path d="M55 30 L60 15 L65 18 M60 15 L58 8" stroke="#8b6f47" stroke-width="2.5" fill="none" stroke-linecap="round"/> <ellipse cx="50" cy="40" rx="14" ry="16" fill="#c8956c"/> <ellipse cx="50" cy="48" rx="8" ry="6" fill="#e8c9a8"/> <circle cx="44" cy="38" r="2.5" fill="#fff"/><circle cx="56" cy="38" r="2.5" fill="#fff"/> <circle cx="44" cy="38" r="1.5" fill="#2d2d2d"/><circle cx="56" cy="38" r="1.5" fill="#2d2d2d"/> <ellipse cx="50" cy="46" rx="2" ry="1.5" fill="#2d2d2d"/> <path d="M46 50 Q50 52 54 50" stroke="#2d2d2d" stroke-width="1" fill="none" stroke-linecap="round"/> <ellipse cx="50" cy="75" rx="22" ry="18" fill="#c8956c"/> </svg> </div> <p class="frozen-message">elsa</p> <p>Soyez les bienvenus à mon anniversaire !</p> </footer> </section> </div> </div> <script> const preloader = document.getElementById('preloader'); const iceDoorOverlay = document.getElementById('iceDoorOverlay'); const mainContent = document.getElementById('mainContent'); window.addEventListener('load', () => { preloader.classList.add('hidden'); }); function openIceDoor() { if (iceDoorOverlay.classList.contains('open')) return; iceDoorOverlay.classList.add('open'); setTimeout(() => { iceDoorOverlay.classList.add('hidden'); mainContent.classList.add('visible'); document.body.classList.remove('locked'); window.scrollTo(0, 0); }, 1800); } iceDoorOverlay.addEventListener('click', openIceDoor); function createSnowflakes() { const container = document.getElementById('snowflakes'); const symbols = ['❄', '❅', '❆']; for (let i = 0; i < 30; i++) { const s = document.createElement('div'); s.className = 'snowflake'; s.textContent = symbols[Math.floor(Math.random() * symbols.length)]; s.style.left = Math.random() * 100 + '%'; s.style.animationDuration = (Math.random() * 5 + 5) + 's'; s.style.animationDelay = Math.random() * 10 + 's'; s.style.fontSize = (Math.random() * 1.5 + 0.5) + 'em'; s.style.opacity = Math.random() * 0.7 + 0.3; container.appendChild(s); } } createSnowflakes(); function updateCountdown() { const eventDate = new Date('2026-07-25T14:00:00').getTime(); const now = new Date().getTime(); const distance = eventDate - now; if (distance < 0) { document.getElementById('countdown').innerHTML = '<h2 style="color: #0a2540; font-family: Cinzel Decorative, serif;">C\'est le jour de la fête !</h2>'; return; } const days = Math.floor(distance / (1000 * 60 * 60 * 24)); const hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); const minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); const seconds = Math.floor((distance % (1000 * 60)) / 1000); document.getElementById('days').textContent = String(days).padStart(2, '0'); document.getElementById('hours').textContent = String(hours).padStart(2, '0'); document.getElementById('minutes').textContent = String(minutes).padStart(2, '0'); document.getElementById('seconds').textContent = String(seconds).padStart(2, '0'); } updateCountdown(); setInterval(updateCountdown, 1000); const observer = new IntersectionObserver((entries) => { entries.forEach(entry => { if (entry.isIntersecting) { entry.target.style.opacity = '1'; entry.target.style.transform = 'translateY(0)'; } }); }, { threshold: 0.1, rootMargin: '0px 0px -50px 0px' }); document.querySelectorAll('.detail-card, .countdown-item').forEach(el => { el.style.opacity = '0'; el.style.transform = 'translateY(30px)'; el.style.transition = 'all 0.6s ease-out'; observer.observe(el); }); /* ========================================================= // ★ WHEEL ★ DÉFILEMENT "PAGE PAR PAGE" À LA MOLETTE (PC) — v2 // Seuil + anti-inertie : un VRAI geste = 1 page (fini les sauts au trackpad) ========================================================= */ const pages = [...document.querySelectorAll('.hero, .page-section')]; let wheelLock = false; let wheelAccum = 0; // accumulateur de deltaY let wheelTimer = null; const WHEEL_THRESHOLD = 50; // seuil (px) avant de changer de page function pageTop(el) { return el.getBoundingClientRect().top + window.scrollY; } function currentIndex() { const mid = window.scrollY + window.innerHeight / 2; let idx = 0; pages.forEach((p, i) => { if (pageTop(p) <= mid) idx = i; }); return idx; } function goToPage(i) { i = Math.max(0, Math.min(pages.length - 1, i)); wheelLock = true; pages[i].scrollIntoView({ behavior: 'smooth', block: 'start' }); // même animation que le bouton setTimeout(() => { wheelLock = false; }, 950); } window.addEventListener('wheel', (e) => { if (e.ctrlKey || e.shiftKey) return; // zoom / scroll horizontal natifs if (document.body.classList.contains('locked')) return; // portes fermées if (wheelLock) { e.preventDefault(); return; } // animation en cours const i = currentIndex(); const cur = pages[i]; const top = pageTop(cur); const bottom = top + cur.offsetHeight; const viewBottom = window.scrollY + window.innerHeight; // Page plus haute que l'écran (page 2) : scroll libre tant qu'on n'est pas au bord if (cur.offsetHeight > window.innerHeight + 10) { if (e.deltaY > 0 && viewBottom < bottom - 10) return; if (e.deltaY < 0 && window.scrollY > top + 10) return; } e.preventDefault(); // On accumule le deltaY et on ne change de page que si le cumul dépasse le seuil wheelAccum += e.deltaY; clearTimeout(wheelTimer); wheelTimer = setTimeout(() => { wheelAccum = 0; }, 200); // reset si petite pause if (Math.abs(wheelAccum) >= WHEEL_THRESHOLD) { const dir = wheelAccum > 0 ? 1 : -1; wheelAccum = 0; goToPage(i + dir); } }, { passive: false }); /* ========================================================= // ★ TOUCH ★ DÉFILEMENT "PAGE PAR PAGE" ANIMÉ AU DOIGT (TÉLÉPHONE) // = le même effet que le bouton "Découvrir ▼" et que la molette PC. ========================================================= */ let touchStartY = 0; let touchNative = null; // null = indécis, true = scroll natif libre, false = on anime window.addEventListener('touchstart', (e) => { if (document.body.classList.contains('locked')) return; // portes fermées : rien touchStartY = e.touches[0].clientY; touchNative = null; }, { passive: true }); window.addEventListener('touchmove', (e) => { if (document.body.classList.contains('locked')) return; if (wheelLock) { e.preventDefault(); return; } // animation en cours : on bloque const dy = e.touches[0].clientY - touchStartY; // dy<0 = doigt vers le haut = page suivante if (Math.abs(dy) < 8) return; // ignore les micro-mouvements if (touchNative === null) { const i = currentIndex(); const cur = pages[i]; const top = pageTop(cur); const bottom = top + cur.offsetHeight; const viewBottom = window.scrollY + window.innerHeight; const goingNext = dy < 0; if (cur.offsetHeight > window.innerHeight + 10) { if (goingNext && viewBottom < bottom - 10) touchNative = true; else if (!goingNext && window.scrollY > top + 10) touchNative = true; else touchNative = false; } else { touchNative = false; } } if (touchNative === false) e.preventDefault(); // on bloque le natif, on animera au relâchement }, { passive: false }); window.addEventListener('touchend', (e) => { if (document.body.classList.contains('locked')) { touchNative = null; return; } if (touchNative === false) { const dy = e.changedTouches[0].clientY - touchStartY; if (Math.abs(dy) > 50) { // swipe franc (> 50px) goToPage(currentIndex() + (dy < 0 ? 1 : -1)); // → page suivante / précédente, en douceur } } touchNative = null; }, { passive: true }); </script> Assistant
I will explore the existing project files to check the setup, dependencies, and structure.
I will read
package.jsonto inspect the available dependencies.I will install
lucide-reactandcanvas-confetti(along with types) to provide icons and celebratory animations for the dashboard and live invitation preview.I will inspect
index.htmlto check the title and external fonts included.I will inspect
src/index.cssto verify the CSS configuration.I will update
index.htmlwith Google Fonts (Cinzel Decorative,Cinzel,Quicksand,Great Vibes,Dancing Script,Playfair Display,Montserrat,Pacifico) and an engaging title for the Digital Invitation Creator Studio.I will fetch stock photos for invitation themes such as ice kingdom, fairy tale palace, party kids, and luxury celebrations.
I will fetch portrait photos for the birthday VIP avatar presets.
I will create
src/types/invitation.tsto define the TypeScript data structures for invitations, presets, themes, and customization settings.I will create
src/data/templates.tscontaining the initial Frozen / Reine des Neiges template and multiple ready-to-use luxury presets.I will create
src/utils/soundEffects.tswith Web Audio API sound synthesis to generate enchanting chimes and chime cascades when the doors open.I will create
src/components/ThemeGraphics.tsxto render character graphics and icons for each invitation theme.I will create
src/components/ParticleEffect.tsxto handle background animated particles (snowflakes, stars, hearts, golden dust).I will create
src/components/LiveInvitation.tsxto render the interactive digital invitation with real-time reactive updates from the dashboard.I will create
src/utils/htmlExporter.tsto generate and download a single-file standalone HTML invitation based on the active dashboard configuration.I will create
src/components/Dashboard.tsxcontaining the full-featured dashboard editor and live preview controller.I will edit
src/components/Dashboard.tsxto clean up the unused imports.I will create
src/App.tsxwith split-screen studio editing, live iPhone/mobile simulator, full-screen guest preview mode, and invitation management.I will now build the project to verify that there are no syntax or type errors.
I will run
build_projectagain to ensure the final bundle compiles cleanly.Oui, c'est tout à fait possible et c'est exactement ce que nous venons de créer pour vous ! ✨
Voici le Studio & Dashboard d'Invitations Numériques Personnalisées (FestiMagic Studio) avec visualisation interactive en direct (temps réel).
🌟 Ce que vous pouvez faire dans le Dashboard :
-
🎨 Visualisation Live en Temps Réel (Double Écran & Simulateur Smartphone) :
- Simulateur iPhone interactif à droite qui se met à jour instantanément à chaque frappe de texte, changement de couleur, upload de photo ou curseur d'opacité.
- Bouton Plein Écran pour tester l'invitation exactement comme vos invités la verront sur leur téléphone.
- Portes 3D interactives cliquables avec carillon magique sonore (Web Audio API) et confettis féeriques.
-
✍️ Modification de TOUS les Textes, Tailles & Typographies :
- Nom de l'invité(e) / fêté(e), sous-titres, texte de bandeau d'introduction, badge d'âge (6 ans, 18 ans, etc.).
- Texte des portes, texte et icône du préchargement (preloader), message chaleureux du footer.
- Choix des Polices d'exception : Cinzel Decorative, Playfair Display, Great Vibes, Pacifico, Montserrat, Dancing Script, Alex Brush.
- Curseur de taille et styles d'effets lumineux (Glace Céleste, Or 24K Brillant, Rose Poudré, Vert Émeraude, Cosmique Néon).
-
🖼️ Personnalisation de TOUTES les Images & Photos :
- Photo de la fêtée / Avatar VIP : Uploadez votre propre fichier photo depuis votre ordinateur/téléphone, collez une URL ou choisissez dans la galerie de presets. Forme ajustable (Cercle, Cœur romantique, Arche royale, Carré doux).
- Les Deux Portes 3D (Gauche & Droite) : Image de la porte gauche et porte droite personnalisables avec upload direct ou URL.
- Image de Fond (Background Page 1) : Image au choix avec galerie et upload.
-
🎭 Couleur du Voile (Teinte de l'Image de Fond) & Dégradés :
- Curseur de Teinte / Filtre sur mesure : Choisissez la couleur exacte du voile (Bleu givré, Rose poudré, Noir nuit, Vert émeraude, Doré) et ajustez son opacité de 0% à 100% pour garantir une lisibilité optimale de vos textes.
- Dégradés personnalisables pour les Pages 1, 2 et 3.
- Particules animées flottantes au choix : Flocons de neige ❄️, Étoiles scintillantes ✨, Cœurs roses 💖, Bulles magiques 🫧 ou Poussière d'or 🌟.
-
⏳ Date, Compte à Rebours & Dress Code :
- Sélecteur de date & heure cible qui recalcule automatiquement les Jours, Heures, Minutes et Secondes restants en temps réel.
- Dress code personnalisé avec pastilles de couleurs interactives.
-
📍 Localisation Google Maps Dynamique :
- Saisissez simplement l'adresse de votre salle des fêtes pour générer automatiquement la carte Google Maps interactive intégrée sur la page 3.
-
📥 Export & Partage Instantané :
- Télécharger HTML Autonome : Génère et télécharge en un clic un fichier HTML complet et autonome prêt à être hébergé ou envoyé par WhatsApp/Email/SMS.
- Copier le Code dans le presse-papier.
- Générateur de QR Code de partage.
Files built:
index.html,src/types/invitation.ts,src/data/templates.ts,src/utils/soundEffects.ts,src/components/ThemeGraphics.tsx,src/components/ParticleEffect.tsx,src/components/LiveInvitation.tsx,src/utils/htmlExporter.ts,src/components/Dashboard.tsx,src/App.tsx-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.