@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fade-in {
    animation: fadeIn 1.2s ease-out forwards;
    opacity: 0;
}

.animate-shimmer {
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse 4s ease-in-out infinite;
}

.font-cormorant {
    font-family: 'Cormorant Garamond', serif;
}

.font-montserrat {
    font-family: 'Montserrat', sans-serif;
}

.bg-gradient-elegant {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timeline-item:nth-child(odd) {
    animation-delay: 0.3s;
}

.timeline-item:nth-child(even) {
    animation-delay: 0.6s;
}

.memory-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.memory-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.sakura {
    position: absolute;
    background-color: #ffd7e9;
    border-radius: 50% 0 50% 0;
    transform: rotate(45deg);
    opacity: 0.7;
    pointer-events: none;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

.gallery-item {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gallery-item:hover {
    transform: scale(1.03);
    z-index: 10;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.quote-mark {
    font-size: 5rem;
    line-height: 0;
    position: absolute;
    color: rgba(255,255,255,0.1);
}

.left-quote {
    top: 20px;
    left: 10px;
}

.right-quote {
    bottom: 0;
    right: 10px;
}

.photo-frame {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3);
}

.photo-placeholder {
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.1) 75%, transparent 75%);
    background-size: 10px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
}

/* Styles spécifiques pour les sections */
#hero {
    background: linear-gradient(135deg, #7928CA 0%, #FF0080 100%);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

#timeline {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}

#gallery {
    background: linear-gradient(135deg, #312E81 0%, #4338CA 100%);
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}

#wishes {
    background: linear-gradient(135deg, #4A044E 0%, #701A75 100%);
}

#footer {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

.timeline-photo {
    width: 100%;
    height: 120px;
    border-radius: 0.375rem;
    margin-top: 0.75rem;
    overflow: hidden;
}