/* Fond cyan plein écran */
body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #B0E0E6; /* Cyan */
    overflow: hidden;
}

/* Suppression du fond blanc du container (transparence totale) */
.container {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background-color: transparent; /* Plus de rectangle blanc ! */
    box-shadow: none; /* On retire l'ombre du container pour un effet "flottant" */
}

#image-container {
    margin-bottom: 20px;
    cursor: pointer;
}

/* Taille et ombres personnalisées pour l'image */
#main-image {
    width: 300px;
    height: 300px;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(26, 239, 241, 0.7); /* Ombre cyan pour les images normales */
    transition: all 0.3s;
}

/* Effet de survol pour les images normales */
#main-image:hover:not(.reward) {
    box-shadow: 0 12px 24px rgba(26, 239, 241, 0.9);
    transform: translateY(-3px);
}

/* Ombre pour les images récompenses */
#main-image.reward {
    box-shadow: 0 10px 20px rgba(171, 112, 219, 0.5); /* Violet clair */
}

/* Effet de survol pour les récompenses */
#main-image.reward:hover {
    box-shadow: 0 14px 28px rgba(171, 112, 219, 0.8);
    transform: translateY(-3px);
}

/* Style du bouton image */
#reward-button {
    margin-top: 20px;
}

#reward-button img {
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: transform 0.3s;
}

#reward-button img:hover {
    transform: scale(1.1);
}

.hidden {
    display: none;
}
/* ===== TAQUIN PUZZLE (Version complète corrigée) ===== */
.taquin-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(240, 240, 240, 0.1); /* Fond 10% opaque */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 620px;
    margin: 20px auto;
}

.taquin-grid {
    display: grid;
    grid-template-columns: repeat(3, 200px);
    grid-template-rows: repeat(3, 200px);
    gap: 5px;
    margin-bottom: 20px;
}

.taquin-piece {
    width: 200px;
    height: 200px;
    background-size: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.taquin-piece:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transform: scale(1.02);
}

.empty-space {
    background-color: rgba(224, 224, 224, 0.5); /* Case vide semi-transparente */
    border-radius: 5px;
}

.win-image {
    width: 600px;
    height: 600px;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Animation de victoire */
#full-image {
    transition: box-shadow 0.2s ease; /* Effet de fondu sur l'ombre */
}

#full-image.blink {
    animation: blinkShadow 0.8s 5; /* 5 clignotements (0.8s pour un effet plus visible) */
}

@keyframes blinkShadow {
    0% {
        box-shadow: 0 0 20px rgba(238, 130, 238, 0.7), 0 0 40px rgba(255, 105, 180, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(147, 112, 219, 0.9), 0 0 50px rgba(93, 71, 139, 0.7);
    }
    100% {
        box-shadow: 0 0 20px rgba(238, 130, 238, 0.7), 0 0 40px rgba(255, 105, 180, 0.5);
    }
}


/* Titre personnalisé */
.taquin-container h1 {
    color: #FF69B4;
    font-family: 'Comic Sans MS', cursive;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Lien HD stylisé */
.hd-link {
    display: inline-block;
    padding: 12px 25px;
    margin: 10px 5px;
    background: linear-gradient(45deg, #FF69B4, #9370DB);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.hd-link:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* ===== CONTENEUR DE VICTOIRE ===== */
#win-container {
    display: none; /* Masqué par défaut */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px auto;
    width: 100%;
    max-width: 600px;
}

/* Image complète (affichée après victoire) */
#full-image {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    display: none; /* Masquée par défaut */
}

/* Lien "Good Job" */
#hd-link {
    display: block;
    padding: 12px 24px;
    background: linear-gradient(45deg, #ff6b9d, #c44569);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

#hd-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Bouton Reload */
.reload-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    margin: 0 auto;
    display: block;
}

.reload-button img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s;
}

.reload-button:hover img {
    transform: rotate(180deg);
}

