#edm {
    filter: invert(1) hue-rotate(180deg) brightness(1.5) saturate(2);
    animation: edm-zoom 0.25s cubic-bezier(.4,2,.6,.8) infinite alternate;
}

@keyframes edm-zoom {
    0% { transform: scale(1); }
    20% { transform: scale(1.15); }
    40% { transform: scale(0.95); }
    60% { transform: scale(1.2); }
    80% { transform: scale(0.9); }
    100% { transform: scale(1.18); }
}
body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: #fff;
  font-family: 'Comic Sans MS', Impact, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#ananas-gif {
  display: block;
  margin: 0 auto 30px auto;
  max-width: 90vw;
  max-height: 60vh;
  width: 100vw;
  height: auto;
}

#music-btn {
    font-family: Impact, 'Arial Black', Arial, sans-serif;
    font-size: 2rem;
    padding: 20px 60px;
    background: #e0e0e0;
    border: 2px outset #aaa;
    cursor: pointer;
    letter-spacing: 2px;
    margin-top: 30px;
    margin-bottom: 30px;
    color: #222;
}

@media (max-width: 600px) {
  #ananas-gif {
    max-width: 100vw;
    max-height: 50vh;
    width: 100vw;
    height: auto;
  }
  body {
    min-height: 100dvh;
    padding: 0;
  }
}

.pineapple-gif {
    width: 300px;
    height: 300px;
    object-fit: contain;
    transition: transform 0.3s ease;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.pineapple-wrapper:hover .pineapple-gif {
    transform: scale(1.1);
}

.pineapple-emoji {
    font-size: 15rem;
    animation: spin 2s linear infinite;
    transition: animation-duration 0.3s ease;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.pineapple-wrapper:hover .pineapple-emoji {
    animation-duration: 0.5s;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.click-hint {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    animation: pulse 2s infinite;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
    white-space: nowrap;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.7; transform: translateX(-50%) scale(1.05); }
}

.controls {
    margin: 60px 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.download-btn, .music-toggle {
    font-family: 'Comic Neue', 'Comic Sans MS', cursive, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.download-btn {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
}

.music-toggle {
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
    color: white;
}

.download-btn:hover, .music-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.download-btn:active, .music-toggle:active {
    transform: translateY(0);
}

.declaration-guerre {
    margin: 80px 0;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.95), rgba(139, 0, 0, 0.95));
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 3px solid #ff6b6b;
    position: relative;
    overflow: hidden;
}

.declaration-guerre::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
    animation: warShine 3s ease-in-out infinite;
}

@keyframes warShine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.declaration-guerre h2 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1;
}

.war-message {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.attention {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffff00;
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}

.main-message {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.ultimatum {
    font-size: 1.3rem;
    font-weight: 500;
    color: #ffeb3b;
    margin-bottom: 20px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.consequences {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ff5722;
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.signature {
    font-size: 1.2rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 25px;
    text-align: center;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.deadline {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #ff6b6b;
    text-align: center;
    margin-top: 30px;
}

.deadline p {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ff5722;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.deadline p:first-child {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffff00;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
    text-align: center;
}

footer {
    margin-top: 80px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    color: white;
    font-size: 1.1rem;
}

/* War mode animation */
@keyframes warFlash {
    0% { 
        filter: brightness(1);
        background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f9ca24);
    }
    50% { 
        filter: brightness(1.5);
        background: linear-gradient(45deg, #ff0000, #ff6b6b, #ff0000, #ff6b6b);
    }
    100% { 
        filter: brightness(1);
        background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f9ca24);
    }
}

/* Countdown Timer Styles */
.countdown-timer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 20px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 15px;
    border: 2px solid #ff6b6b;
    max-width: 100%;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

.time-unit {
    text-align: center;
    padding: 10px 5px;
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.2), rgba(255, 152, 0, 0.2));
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.time-unit span {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ff5722;
    text-shadow: 0 0 10px rgba(255, 87, 34, 0.5);
    margin-bottom: 5px;
    font-family: 'Courier New', monospace;
}

.time-unit label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #ffff00;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes countdownPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.9; }
}

.countdown-timer:hover .time-unit {
    animation: countdownPulse 2s ease-in-out infinite;
}

.war-warning {
    color: #ffff00;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 15px;
    text-align: center;
    animation: warningBlink 1.5s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

@keyframes warningBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Contact Section Styles */
.contact-info {
    margin: 30px 0;
    padding: 25px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    border: 2px solid #4ecdc4;
    text-align: center;
}

.contact-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #4ecdc4;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.contact-email {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffff00;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    word-break: break-all;
    animation: emailGlow 2s ease-in-out infinite;
}

@keyframes emailGlow {
    0%, 100% { 
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 255, 0, 0.5);
    }
    50% { 
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 0, 0.8);
    }
}

.contact-note {
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Media query pour le contact */
@media (max-width: 768px) {
    .contact-info {
        padding: 20px 15px;
    }
    
    .contact-title {
        font-size: 1.2rem;
    }
    
    .contact-email {
        font-size: 1.3rem;
    }
    
    .contact-note {
        font-size: 1rem;
    }
}

/* Media queries for countdown */
@media (max-width: 768px) {
    .countdown-timer {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 15px;
        margin: 15px 0;
    }
    
    .time-unit {
        padding: 8px 4px;
    }
    
    .time-unit span {
        font-size: 1.4rem;
    }
    
    .time-unit label {
        font-size: 0.6rem;
    }
    
    .war-warning {
        font-size: 1rem;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .countdown-timer {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 12px;
        margin: 10px 0;
    }
    
    .time-unit {
        padding: 6px 3px;
    }
    
    .time-unit span {
        font-size: 1.2rem;
        margin-bottom: 3px;
    }
    
    .time-unit label {
        font-size: 0.55rem;
        letter-spacing: 0.5px;
    }
    
    .war-warning {
        font-size: 0.9rem;
        margin-top: 8px;
    }
    
    .deadline p:first-child {
        font-size: 1rem;
        margin-bottom: 10px;
    }
}

/* Très petits écrans */
@media (max-width: 320px) {
    .countdown-timer {
        padding: 10px;
        gap: 4px;
    }
    
    .time-unit {
        padding: 4px 2px;
    }
    
    .time-unit span {
        font-size: 1rem;
    }
    
    .time-unit label {
        font-size: 0.5rem;
    }
    
    .war-warning {
        font-size: 0.8rem;
    }
}

/* Music playing animation */
.music-playing {
    animation: musicPulse 0.5s ease-in-out infinite alternate;
}

@keyframes musicPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* Loading animation */
.loading {
    position: relative;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes warShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

.war-activated {
    text-align: center;
    padding: 20px;
}

.war-activated h3 {
    font-size: 2rem;
    color: #ff0000;
    margin-bottom: 15px;
    animation: warFlash 0.5s infinite;
}

.war-activated p {
    font-size: 1.3rem;
    color: #ffff00;
    margin-bottom: 10px;
    font-weight: 700;
}

/* Mode disco : fond noir, bouton rainbow animé, GIF négatif + zoom, tout vibre */
body.disco {
  background: #000 !important;
  transition: background 0.2s;
}

#ananas-gif.edm {
  filter: invert(1) hue-rotate(180deg) brightness(1.5) saturate(2) !important;
  animation: edm-zoom 0.18s cubic-bezier(.4,2,.6,.8) infinite alternate, edm-vibe 0.09s linear infinite alternate;
}

@keyframes edm-vibe {
  0% { filter: blur(0px); }
  100% { filter: blur(1.5px); }
}

#music-btn.rainbow {
  background: #000 !important;
  color: #fff !important;
  border: 3px solid #fff;
}
