@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;600;700&display=swap');
        
        :root {
            --primary: #2c3e50;
            --secondary: #3498db;
            --accent: #e74c3c;
            --success: #2ecc71;
            --warning: #f39c12;
            --light: #ecf0f1;
            --dark: #121212;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Exo 2', sans-serif;
            background-color: var(--dark);
            color: var(--light);
            overflow-x: hidden;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }
        
        header {
            padding: 1rem;
            text-align: center;
            background-color: var(--primary);
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
            position: relative;
            z-index: 10;
        }
        
        .title {
            font-size: 2.5rem;
            margin-bottom: 0.5rem;
            font-weight: 700;
            color: var(--light);
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        }
        
        .subtitle {
            font-size: 1rem;
            color: var(--secondary);
            margin-bottom: 1rem;
        }
        
        .game-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            flex-grow: 1;
            padding: 1rem;
            position: relative;
        }
        
        .world-container {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            z-index: 1;
        }
        
        .world {
            width: 300px;
            height: 300px;
            border-radius: 50%;
            background: radial-gradient(circle at 30% 30%, #3498db 0%, #2980b9 60%, #1f618d 100%);
            box-shadow: 0 0 30px rgba(52, 152, 219, 0.5);
            position: relative;
            overflow: hidden;
            cursor: pointer;
            transition: transform 15s linear infinite, box-shadow 0.5s;
            transform-style: preserve-3d;
            margin: 2rem 0;
        }
        
        .world.active {
            animation: rotate 30s linear infinite;
        }
        
        @keyframes rotate {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .world-surface {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }
        
        .continent {
            position: absolute;
            background-color: #27ae60;
            border-radius: 50%;
            transform: translateZ(10px);
        }
        
        .world-element {
            position: absolute;
            font-size: 1rem;
            z-index: 2;
            transition: all 0.3s;
            transform-origin: center;
            cursor: pointer;
        }
        
        .element-tooltip {
            position: absolute;
            background-color: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 0.5rem;
            border-radius: 5px;
            font-size: 0.8rem;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            white-space: nowrap;
            opacity: 0;
            transition: opacity 0.3s;
            pointer-events: none;
            z-index: 10;
        }
        
        .world-element:hover .element-tooltip {
            opacity: 1;
        }
        
        .controls {
            width: 100%;
            max-width: 800px;
            margin-top: 2rem;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .indicators {
            display: flex;
            justify-content: space-around;
            width: 100%;
            max-width: 600px;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }
        
        .indicator {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin: 0.5rem;
        }
        
        .indicator-title {
            font-size: 0.9rem;
            margin-bottom: 0.3rem;
            color: var(--light);
        }
        
        .indicator-value {
            font-size: 1.2rem;
            font-weight: bold;
            margin-bottom: 0.3rem;
        }
        
        .indicator-bar-container {
            width: 100px;
            height: 10px;
            background-color: rgba(255, 255, 255, 0.2);
            border-radius: 5px;
            overflow: hidden;
        }
        
        .indicator-bar {
            height: 100%;
            border-radius: 5px;
            transition: width 0.5s, background-color 0.5s;
        }
        
        .temperature-bar { background-color: var(--accent); }
        .biodiversity-bar { background-color: var(--success); }
        .pollution-bar { background-color: var(--warning); }
        .population-bar { background-color: var(--secondary); }
        .happiness-bar { background-color: #9b59b6; }
        
        .items-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            gap: 1rem;
            width: 100%;
            max-width: 600px;
            margin-bottom: 2rem;
        }
        
        .item-button {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 0.8rem;
            background-color: rgba(255, 255, 255, 0.1);
            border: none;
            border-radius: 10px;
            color: var(--light);
            cursor: pointer;
            transition: all 0.3s;
            text-align: center;
        }
        
        .item-button:hover {
            background-color: rgba(255, 255, 255, 0.2);
            transform: translateY(-5px);
        }
        
        .item-button.disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        
        .item-icon {
            font-size: 2rem;
            margin-bottom: 0.5rem;
        }
        
        .item-name {
            font-size: 0.8rem;
        }
        
        .status-message {
            margin-top: 1rem;
            padding: 1rem;
            background-color: rgba(0, 0, 0, 0.5);
            border-radius: 10px;
            text-align: center;
            opacity: 0;
            transition: opacity 0.5s;
            max-width: 600px;
        }
        
        .status-message.show {
            opacity: 1;
        }
        
        .events-list {
            margin-top: 1rem;
            max-height: 150px;
            overflow-y: auto;
            width: 100%;
            max-width: 600px;
            padding: 0.5rem;
            background-color: rgba(0, 0, 0, 0.2);
            border-radius: 10px;
        }
        
        .event-item {
            padding: 0.5rem;
            margin-bottom: 0.5rem;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 5px;
            font-size: 0.9rem;
            animation: fadeIn 0.5s;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .reset-button {
            margin-top: 1rem;
            padding: 0.8rem 2rem;
            background-color: var(--accent);
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s;
        }
        
        .reset-button:hover {
            background-color: #c0392b;
            transform: scale(1.05);
        }
        
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 100;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.5s;
        }
        
        .overlay.show {
            opacity: 1;
            pointer-events: auto;
        }
        
        .game-over-container {
            background-color: var(--primary);
            padding: 2rem;
            border-radius: 10px;
            text-align: center;
            max-width: 90%;
            width: 500px;
        }
        
        .game-over-title {
            font-size: 2rem;
            margin-bottom: 1rem;
            color: var(--accent);
        }
        
        .game-over-message {
            margin-bottom: 2rem;
            line-height: 1.5;
        }
        
        .restart-button {
            padding: 1rem 2rem;
            background-color: var(--secondary);
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s;
        }
        
        .restart-button:hover {
            background-color: #2980b9;
            transform: scale(1.05);
        }
        
        .intro-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: var(--dark);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 150;
            transition: opacity 1s;
        }
        
        .intro-container {
            background-color: var(--primary);
            padding: 2rem;
            border-radius: 10px;
            text-align: center;
            max-width: 90%;
            width: 600px;
        }
        
        .intro-title {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            color: var(--secondary);
        }
        
        .intro-description {
            margin-bottom: 2rem;
            line-height: 1.6;
        }
        
        .start-button {
            padding: 1rem 3rem;
            background-color: var(--success);
            color: white;
            border: none;
            border-radius: 30px;
            cursor: pointer;
            font-weight: bold;
            font-size: 1.2rem;
            transition: all 0.3s;
        }
        
        .start-button:hover {
            background-color: #27ae60;
            transform: scale(1.05);
        }
        
        /* Animation pour les éléments ajoutés */
        @keyframes elementAppear {
            0% { transform: scale(0) rotate(0deg); opacity: 0; }
            50% { transform: scale(1.2) rotate(10deg); opacity: 1; }
            100% { transform: scale(1) rotate(0deg); opacity: 1; }
        }
        
        .element-appear {
            animation: elementAppear 0.5s forwards;
        }
        
        /* Animation pour un événement catastrophique */
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
            20%, 40%, 60%, 80% { transform: translateX(5px); }
        }
        
        .shake {
            animation: shake 0.5s;
        }
        
        /* Animation pour le game over */
        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }
        
        .pulse {
            animation: pulse 2s infinite;
        }
        
        .clouds {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            pointer-events: none;
            opacity: 0.5;
        }
        
        .cloud {
            position: absolute;
            background-color: rgba(255, 255, 255, 0.4);
            border-radius: 50%;
            opacity: 0.7;
        }
        
        /* Responsive design */
        @media (max-width: 768px) {
            .title {
                font-size: 2rem;
            }
            
            .world {
                width: 250px;
                height: 250px;
            }
            
            .items-grid {
                grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
            }
            
            .item-icon {
                font-size: 1.5rem;
            }
            
            .indicator {
                margin: 0.2rem;
            }
            
            .indicator-bar-container {
                width: 80px;
            }
        }
        
        @media (max-width: 480px) {
            .world {
                width: 200px;
                height: 200px;
            }
            
            .indicators {
                flex-direction: column;
                align-items: center;
            }
            
            .indicator {
                margin: 0.5rem 0;
            }
            
            .items-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }
        
        /* Styles pour les événements spéciaux */
        .meteor {
            position: absolute;
            width: 50px;
            height: 50px;
            background: radial-gradient(circle at 30% 30%, #e74c3c 0%, #c0392b 70%);
            border-radius: 50%;
            box-shadow: 0 0 20px rgba(231, 76, 60, 0.8);
            filter: blur(2px);
            z-index: 20;
            pointer-events: none;
        }
        
        .meteor::after {
            content: '';
            position: absolute;
            top: -100px;
            left: 50%;
            width: 4px;
            height: 100px;
            background: linear-gradient(to top, rgba(231, 76, 60, 0.8), transparent);
            transform: translateX(-50%) rotate(45deg);
            transform-origin: bottom center;
        }
        
        .ai-takeover {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at center, rgba(52, 152, 219, 0) 0%, rgba(52, 152, 219, 0.5) 100%);
            border-radius: 50%;
            z-index: 5;
            pointer-events: none;
            opacity: 0;
            transition: opacity 2s;
        }
        
        .ai-takeover.active {
            opacity: 1;
        }
        
        .ai-grid {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                linear-gradient(rgba(52, 152, 219, 0.2) 1px, transparent 1px),
                linear-gradient(90deg, rgba(52, 152, 219, 0.2) 1px, transparent 1px);
            background-size: 20px 20px;
            border-radius: 50%;
            z-index: 6;
            pointer-events: none;
            opacity: 0;
            transition: opacity 2s;
        }
        
        .ai-grid.active {
            opacity: 1;
        }
        
        .ai-core {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 50px;
            height: 50px;
            background-color: rgba(52, 152, 219, 0.8);
            border-radius: 50%;
            box-shadow: 0 0 20px rgba(52, 152, 219, 0.8);
            z-index: 7;
            opacity: 0;
            transition: opacity 2s, transform 2s;
        }
        
        .ai-core.active {
            opacity: 1;
            animation: pulse 2s infinite;
        }
        
        .pollution-layer {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(100, 100, 100, 0);
            border-radius: 50%;
            z-index: 4;
            pointer-events: none;
            transition: background-color 2s;
        }
        
        /* Tooltips pour les actions */
        .tooltip {
            position: relative;
        }
        
        .tooltip::after {
            content: attr(data-tooltip);
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            background-color: var(--dark);
            color: var(--light);
            padding: 0.5rem;
            border-radius: 5px;
            font-size: 0.8rem;
            white-space: nowrap;
            opacity: 0;
            transition: opacity 0.3s;
            pointer-events: none;
            z-index: 10;
        }
        
        .tooltip:hover::after {
            opacity: 1;
        }