/* ============================================
   UNBLOCK BUTTON - DESTRUCTION EFFECT
   ============================================ */

/* Bouton UnBlock INTÉGRÉ dans la nav */
.unblock-btn {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.95) 0%, rgba(16, 185, 129, 0.95) 100%);
    border: 2px solid rgba(34, 197, 94, 0.6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.3);
    transition: all 0.3s ease;
    animation: unblock-pulse 2s ease-in-out infinite;
    margin-left: 1.5rem; /* Espace entre "Universe" et le bouton */
}

.unblock-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.6);
    background: linear-gradient(135deg, rgba(16, 185, 129, 1) 0%, rgba(5, 150, 105, 1) 100%);
}

.unblock-btn:active {
    transform: scale(0.95);
}

@keyframes unblock-pulse {
    0%, 100% {
        box-shadow: 0 2px 10px rgba(34, 197, 94, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(34, 197, 94, 0.6);
    }
}

/* Effet de destruction */
.site-fragment {
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    will-change: transform, opacity;
}

/* Animation de chute des fragments */
@keyframes fragment-fall {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) rotate(var(--rotation));
        opacity: 0;
    }
}

/* Corps en mode destruction */
body.destroying * {
    pointer-events: none !important;
}

/* Overlay noir final */
.destruction-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 99997;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

.destruction-overlay.active {
    opacity: 1;
}

/* Message final après destruction */
.destruction-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100000;
    text-align: center;
    opacity: 0;
    pointer-events: none;
}

.destruction-message.active {
    opacity: 1;
    animation: destruction-message-appear 1s ease forwards;
}

@keyframes destruction-message-appear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.destruction-message h1 {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 0 40px rgba(34, 197, 94, 0.5);
}

.destruction-message p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.destruction-message .reload-hint {
    font-size: 1rem;
    color: rgba(34, 197, 94, 0.8);
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .unblock-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        margin-left: 0.5rem;
    }
    
    .destruction-message h1 {
        font-size: 2.5rem;
    }
    
    .destruction-message p {
        font-size: 1.2rem;
    }
}
