:root {
    --primary-purple: #6a0dad;
    --secondary-purple: #8a2be2;
    --dark-purple: #4b0082;
    --primary-blue: #4169e1;
    --secondary-blue: #1e90ff;
    --light-blue: #87cefa;
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-gradient: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: var(--background-gradient);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 3px solid var(--secondary-blue);
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    background: linear-gradient(to right, var(--light-blue), var(--secondary-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.game-stats {
    display: flex;
    justify-content: space-around;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    margin: 10px;
    min-width: 120px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--light-blue);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.click-area {
    background-color: rgba(0, 0, 0, 0.2);
    border: 3px solid var(--secondary-purple);
    border-radius: 50%;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-bottom: 30px;
    transition: transform 0.1s;
    box-shadow: 0 0 20px var(--secondary-blue);
}

.click-area:active {
    transform: scale(0.95);
}

.click-area img {
    width: 80%;
    height: auto;
    border-radius: 50%;
}

.upgrades-container {
    width: 100%;
    margin-bottom: 30px;
}

.upgrades-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--light-blue);
    font-size: 2rem;
}

.upgrades-shop {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
}

.upgrade-item {
    background-color: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--secondary-blue);
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

.upgrade-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.upgrade-item h3 {
    color: var(--light-blue);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.upgrade-item p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    flex-grow: 1;
}

.upgrade-level {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.buy-btn {
    background: linear-gradient(to right, var(--secondary-purple), var(--primary-blue));
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    width: 100%;
    font-size: 1rem;
    margin-top: auto;
}

.buy-btn:hover {
    background: linear-gradient(to right, var(--primary-purple), var(--secondary-blue));
}

.buy-btn:disabled {
    background: #555;
    cursor: not-allowed;
}

.achievements {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.achievements h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--light-blue);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.achievement {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--secondary-purple);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.achievement.locked {
    filter: grayscale(1);
    opacity: 0.7;
}

.achievement-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

footer {
    text-align: center;
    padding: 20px;
    border-top: 2px solid var(--secondary-blue);
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.options button {
    background: linear-gradient(to right, var(--dark-purple), var(--primary-blue));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
    font-weight: bold;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--secondary-purple);
    color: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.3s;
    z-index: 1000;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

@media (max-width: 768px) {
    .upgrades-shop {
        grid-template-columns: 1fr;
    }
    
    .click-area {
        width: 200px;
        height: 200px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .game-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat {
        margin: 10px 0;
    }
}

/* Animation pour les clicks */
@keyframes clickEffect {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.click-animation {
    animation: clickEffect 0.2s ease;
}

/* Styles pour la section des combos */
.combos {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.combos h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--light-blue);
}

.combo-item {
    margin-bottom: 15px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

/* Style pour les améliorations de haut niveau */
.upgrade-item.high-level {
    border: 2px solid gold;
    background-color: rgba(0, 0, 0, 0.4);
}

.upgrade-item.high-level h3 {
    color: gold;
}