/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Neue', cursive;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f9ca24, #f0932b, #eb4d4b, #6c5ce7);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    overflow-x: hidden;
    position: relative;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animation de fond */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: backgroundPulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* Header Hero */
.hero-section {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 3rem 1rem;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.main-title {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(2rem, 8vw, 4rem);
    color: #fff;
    text-shadow: 3px 3px 0px #333, 6px 6px 0px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
    position: relative;
}

.bounce-text {
    display: inline-block;
    animation: bounce 2s infinite;
    animation-delay: calc(var(--i, 0) * 0.1s);
}

.bounce-text:nth-child(1) { animation-delay: 0s; }
.bounce-text:nth-child(2) { animation-delay: 0.1s; }
.bounce-text:nth-child(3) { animation-delay: 0.2s; }
.bounce-text:nth-child(4) { animation-delay: 0.3s; }
.bounce-text:nth-child(5) { animation-delay: 0.4s; }
.bounce-text:nth-child(7) { animation-delay: 0.6s; }
.bounce-text:nth-child(8) { animation-delay: 0.7s; }
.bounce-text:nth-child(9) { animation-delay: 0.8s; }
.bounce-text:nth-child(10) { animation-delay: 0.9s; }
.bounce-text:nth-child(11) { animation-delay: 1s; }
.bounce-text:nth-child(12) { animation-delay: 1.1s; }

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

.rainbow-text {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f9ca24, #f0932b, #eb4d4b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowShift 3s ease-in-out infinite;
}

@keyframes rainbowShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(180deg); }
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: #fff;
    font-weight: 700;
    text-shadow: 2px 2px 0px #333;
    animation: pulse 2s infinite;
}

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

/* Emojis flottants */
.floating-emojis {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-emojis span {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
}

.floating-emojis span:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-emojis span:nth-child(2) { top: 20%; right: 10%; animation-delay: 0.5s; }
.floating-emojis span:nth-child(3) { top: 30%; left: 20%; animation-delay: 1s; }
.floating-emojis span:nth-child(4) { top: 40%; right: 20%; animation-delay: 1.5s; }
.floating-emojis span:nth-child(5) { top: 50%; left: 15%; animation-delay: 2s; }
.floating-emojis span:nth-child(6) { top: 60%; right: 15%; animation-delay: 2.5s; }
.floating-emojis span:nth-child(7) { top: 70%; left: 25%; animation-delay: 3s; }
.floating-emojis span:nth-child(8) { top: 80%; right: 25%; animation-delay: 3.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(-40px) rotate(10deg); }
    75% { transform: translateY(-20px) rotate(5deg); }
}

/* Section principale */
.main-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Section vidéo */
.video-section {
    margin-bottom: 4rem;
}

.video-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateX(5deg);
    transition: all 0.3s ease;
}

.video-container:hover {
    transform: perspective(1000px) rotateX(0deg) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.video-frame {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-description h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    color: #333;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.video-description p {
    font-size: 1.1rem;
    color: #555;
    text-align: center;
    line-height: 1.6;
    font-weight: 600;
}

/* Citations de joie */
.joy-quotes {
    text-align: center;
    margin-bottom: 4rem;
}

.quote-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.5);
}

.main-quote {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    color: #333;
    margin-bottom: 1rem;
    position: relative;
    animation: quoteGlow 3s ease-in-out infinite;
}

@keyframes quoteGlow {
    0%, 100% { 
        text-shadow: 0 0 10px rgba(255, 107, 107, 0.5), 
                     0 0 20px rgba(78, 205, 196, 0.3), 
                     0 0 30px rgba(69, 183, 209, 0.2); 
    }
    50% { 
        text-shadow: 0 0 20px rgba(255, 107, 107, 0.8), 
                     0 0 30px rgba(78, 205, 196, 0.6), 
                     0 0 40px rgba(69, 183, 209, 0.4); 
    }
}

.quote-decoration {
    font-size: 2rem;
    animation: decorationDance 2s ease-in-out infinite;
}

@keyframes decorationDance {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(10deg); }
}

/* Grille de célébration */
.celebration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.celebration-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.celebration-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: #ff6b6b;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: cardIconSpin 4s ease-in-out infinite;
}

@keyframes cardIconSpin {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(10deg) scale(1.1); }
    75% { transform: rotate(-10deg) scale(1.1); }
}

.celebration-card h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.celebration-card p {
    color: #555;
    line-height: 1.5;
    font-weight: 600;
}

/* Message caché */
.hidden-message {
    text-align: center;
    margin: 2rem 0;
    opacity: 0.3;
}

.whisper-text {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
    transform: rotate(-2deg);
    transition: all 0.3s ease;
}

.whisper-text:hover {
    opacity: 1;
    transform: rotate(0deg) scale(1.1);
    color: #ff6b6b;
}

/* Zone interactive */
.interactive-zone {
    text-align: center;
    margin-bottom: 4rem;
}

.dance-button {
    display: inline-block;
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.3);
}

.dance-button:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    animation: buttonDance 0.5s ease-in-out;
}

@keyframes buttonDance {
    0%, 100% { transform: scale(1.1) rotate(5deg); }
    25% { transform: scale(1.2) rotate(-5deg); }
    75% { transform: scale(1.15) rotate(10deg); }
}

.konami-hint {
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin-top: 1rem;
}

/* Footer */
.footer {
    position: relative;
    z-index: 10;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 4rem;
}

.footer-content p {
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-emojis span {
    font-size: 1.5rem;
    margin: 0 0.5rem;
    animation: footerEmojiBounce 2s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 0.2s);
}

.footer-emojis span:nth-child(1) { animation-delay: 0s; }
.footer-emojis span:nth-child(2) { animation-delay: 0.2s; }
.footer-emojis span:nth-child(3) { animation-delay: 0.4s; }
.footer-emojis span:nth-child(4) { animation-delay: 0.6s; }
.footer-emojis span:nth-child(5) { animation-delay: 0.8s; }

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

/* Overlay Konami */
.konami-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f9ca24);
    background-size: 400% 400%;
    animation: konamiBackground 2s ease infinite;
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

.konami-overlay.active {
    display: flex;
}

@keyframes konamiBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.konami-content {
    text-align: center;
    color: white;
    animation: konamiPulse 1s ease-in-out infinite;
}

.konami-content h2 {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: 2rem;
    text-shadow: 3px 3px 0px #333;
    animation: konamiTitle 2s ease-in-out infinite;
}

@keyframes konamiTitle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(5deg); }
    75% { transform: scale(1.1) rotate(-5deg); }
}

.party-text {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(1rem, 4vw, 2rem);
    margin-bottom: 2rem;
    line-height: 1.4;
    text-shadow: 2px 2px 0px #333;
    animation: partyTextDance 1.5s ease-in-out infinite;
}

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

.close-konami {
    font-family: 'Comic Neue', cursive;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.close-konami:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

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

/* Classes d'animation pour JavaScript */
.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px) rotate(2deg); }
    75% { transform: translateX(5px) rotate(-2deg); }
}

.party-mode {
    animation: partyMode 2s ease-in-out infinite;
}

@keyframes partyMode {
    0%, 100% { 
        filter: hue-rotate(0deg) saturate(1); 
        transform: scale(1);
    }
    25% { 
        filter: hue-rotate(90deg) saturate(1.5); 
        transform: scale(1.02) rotate(1deg);
    }
    50% { 
        filter: hue-rotate(180deg) saturate(2); 
        transform: scale(1.05) rotate(-1deg);
    }
    75% { 
        filter: hue-rotate(270deg) saturate(1.5); 
        transform: scale(1.02) rotate(1deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
        min-height: 40vh;
    }
    
    .video-container {
        padding: 1rem;
    }
    
    .celebration-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .floating-emojis span {
        font-size: 1.5rem;
    }
    
    .quote-container {
        padding: 2rem 1rem;
    }
}