/* [AI:Claude] Styles pour la page de randomisation d'images */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    text-align: center;
    max-width: 900px;
    width: 100%;
}

h1 {
    color: white;
    font-size: 3em;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 0.8s ease;
}

/* [AI:Claude] Mise en valeur du "Aaaaah" */
h1 .highlight {
    color: #f5576c;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(245, 87, 108, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

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

/* [AI:Claude] Conteneur de l'image avec dimensions fixes */
.image-container {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.placeholder {
    color: #999;
    font-size: 1.2em;
    padding: 40px;
}

#randomImage {
    max-width: 100%;
    max-height: 500px;
    border-radius: 10px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

#randomImage:hover {
    transform: scale(1.02);
}

/* [AI:Claude] Animation de shuffle rapide pendant la randomisation */
.shuffling {
    animation: shuffle 0.1s infinite;
}

@keyframes shuffle {
    0%, 100% {
        transform: translateX(0) scale(1);
        filter: blur(8px);
    }
    25% {
        transform: translateX(-10px) scale(0.95);
        filter: blur(20px);
    }
    75% {
        transform: translateX(10px) scale(0.95);
        filter: blur(20px);
    }
}

/* [AI:Claude] Animation d'apparition de l'image finale */
.reveal {
    animation: revealImage 0.5s ease;
}

@keyframes revealImage {
    0% {
        transform: scale(0.8);
        opacity: 0;
        filter: blur(10px);
    }
    100% {
        transform: scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

/* [AI:Claude] Style du bouton random avec effet hover */
.random-button {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 20px 60px;
    font-size: 1.5em;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.random-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.random-button:active {
    transform: translateY(-1px);
}

.random-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.button-icon {
    font-size: 1.2em;
    animation: spin 2s linear infinite;
}

.random-button:disabled .button-icon {
    animation: spin 0.5s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* [AI:Claude] Responsive pour mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    .image-container {
        min-height: 300px;
    }

    #randomImage {
        max-height: 350px;
    }

    .random-button {
        padding: 15px 40px;
        font-size: 1.2em;
    }
}
