* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Creepster', 'Courier New', monospace;
    padding: 20px;
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 50%, #1a0a2e 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '🎃 👻 🦇 🕷️ 🎃 👻 🦇 🕷️';
    position: fixed;
    top: 10px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 32px;
    z-index: 1;
    animation: float 3s ease-in-out infinite;
}

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

@keyframes glow {
    0%, 100% { 
        text-shadow: 0 0 20px rgba(255, 107, 0, 0.8), 0 0 30px rgba(255, 107, 0, 0.5);
    }
    50% { 
        text-shadow: 0 0 30px rgba(139, 0, 255, 0.9), 0 0 50px rgba(139, 0, 255, 0.6), 0 0 70px rgba(255, 107, 0, 0.4);
    }
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.gallery img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.5), 0 0 40px rgba(139, 0, 255, 0.3);
    transition: all 0.4s ease;
    cursor: pointer;
    border: 6px solid #ff6b00;
    background-color: #1a1a1a;
    filter: brightness(0.9) contrast(1.1);
}

.gallery img:hover {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.9), 0 0 60px rgba(139, 0, 255, 0.6);
    border-color: #8b00ff;
    filter: brightness(1.1) contrast(1.2) saturate(1.3);
}

/* Styles pour le modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 10, 46, 0.95);
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-content {
    max-width: 90%;
    max-height: 85vh;
    margin: auto;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    border: 5px solid #ff6b00;
    border-radius: 15px;
    box-shadow: 0 0 40px rgba(255, 107, 0, 0.8), 0 0 80px rgba(139, 0, 255, 0.6);
}

.close {
    position: absolute;
    right: 25px;
    top: 10px;
    color: #ff6b00;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 0 0 10px rgba(255, 107, 0, 0.8);
    transition: all 0.3s ease;
}

.close:hover {
    color: #8b00ff;
    text-shadow: 0 0 20px rgba(139, 0, 255, 0.9);
    transform: rotate(90deg) scale(1.2);
}

.download-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b00 0%, #ff9500 100%);
    color: #1a0a2e;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.6);
    border: 2px solid #8b00ff;
}

.download-btn:hover {
    background: linear-gradient(135deg, #8b00ff 0%, #b300ff 100%);
    color: white;
    box-shadow: 0 0 30px rgba(139, 0, 255, 0.9);
    transform: translateX(-50%) scale(1.1);
}

.no-images-message {
    text-align: center;
    padding: 50px;
    font-size: 28px;
    color: #ff6b00;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.2) 0%, rgba(139, 0, 255, 0.2) 100%);
    border-radius: 15px;
    margin: 20px auto;
    max-width: 600px;
    border: 3px solid #8b00ff;
    box-shadow: 0 0 30px rgba(139, 0, 255, 0.4);
    text-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
}

/* Responsive design */
@media screen and (max-width: 768px) {
    body::before {
        font-size: 24px;
        top: 5px;
    }
    
    h1 {
        font-size: 32px !important;
        margin: 50px 10px 15px 10px !important;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        padding: 10px;
        gap: 10px;
    }

    .modal {
        padding: 10px;
    }

    .modal-content {
        max-width: 100%;
        max-height: calc(100vh - 120px);
        width: auto;
        height: auto;
        border: 3px solid #ff6b00;
        border-radius: 10px;
    }

    .close {
        right: 10px;
        top: 10px;
        font-size: 35px;
        z-index: 1001;
        background-color: rgba(26, 10, 46, 0.8);
        width: 45px;
        height: 45px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }
    
    .download-btn {
        padding: 12px 24px;
        font-size: 14px;
        bottom: 15px;
        border-radius: 20px;
        z-index: 1001;
    }
}
