/* === STYLES GLOBAUX === */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .jeu-container {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            padding: 30px;
            text-align: center;
            box-shadow: 0 15px 35px rgba(0,0,0,0.3);
            max-width: 500px;
            width: 100%;
            position: relative;
            overflow: hidden;
        }

        /* === EN-TÊTE ET SCORES === */
        h1 {
            color: #2c3e50;
            margin-bottom: 20px;
            font-size: 2.5rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
            background: linear-gradient(45deg, #2c3e50, #3498db);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .stats-container {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            margin-bottom: 25px;
        }

        .stat-box {
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            padding: 15px;
            border-radius: 12px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
        }

        .stat-box:hover {
            transform: translateY(-5px);
        }

        .stat-label {
            font-size: 0.85rem;
            color: #6c757d;
            margin-bottom: 5px;
            font-weight: 600;
        }

        .stat-value {
            font-size: 1.8rem;
            font-weight: bold;
            color: #2c3e50;
        }

        /* === INDICATEURS DE JEU === */
        .niveau-indicateur {
            font-size: 1.2rem;
            margin: 20px 0;
            color: #2c3e50;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .badge-niveau {
            background: #3498db;
            color: white;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 1.1rem;
        }

        .message {
            font-size: 1.2rem;
            margin: 15px 0;
            min-height: 30px;
            color: #e74c3c;
            font-weight: bold;
            transition: all 0.3s ease;
        }

        /* === PLATEAU DE JEU === */
        .plateau-jeu {
            display: grid;
            grid-template-columns: 1fr 1fr;
            grid-gap: 20px;
            margin: 30px 0;
            position: relative;
        }

        .bouton-couleur {
            height: 160px;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 8px 0 rgba(0,0,0,0.2);
            border: none;
            position: relative;
            overflow: hidden;
        }

        .bouton-couleur:active {
            transform: translateY(6px);
            box-shadow: 0 2px 0 rgba(0,0,0,0.2);
        }

        .bouton-couleur.active {
            transform: scale(0.95);
            box-shadow: 0 0 25px white, 0 0 15px white;
            filter: brightness(1.3);
        }

        /* Couleurs avec dégradés pour meilleur rendu */
        #rouge {
            background: linear-gradient(135deg, #e74c3c, #c0392b);
        }

        #bleu {
            background: linear-gradient(135deg, #3498db, #2980b9);
        }

        #vert {
            background: linear-gradient(135deg, #2ecc71, #27ae60);
        }

        #jaune {
            background: linear-gradient(135deg, #f1c40f, #f39c12);
        }

        /* === CONTROLES === */
        .controles {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 25px;
            flex-wrap: wrap;
        }

        button {
            background: linear-gradient(135deg, #3498db, #2980b9);
            color: white;
            border: none;
            padding: 12px 25px;
            font-size: 1.1rem;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 4px 0 #2471a3;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        button:hover {
            background: linear-gradient(135deg, #2980b9, #1f618d);
            transform: translateY(-2px);
        }

        button:active {
            transform: translateY(2px);
            box-shadow: 0 2px 0 #2471a3;
        }

        button:disabled {
            background: #bdc3c7;
            box-shadow: 0 4px 0 #95a5a6;
            cursor: not-allowed;
            transform: none;
        }

        /* === INSTRUCTIONS === */
        .instructions {
            background-color: #f8f9fa;
            padding: 15px;
            border-radius: 10px;
            margin-top: 25px;
            text-align: left;
            font-size: 0.9rem;
            color: #495057;
            border-left: 4px solid #3498db;
        }

        .instructions h3 {
            margin-bottom: 10px;
            color: #2c3e50;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .instructions ul {
            padding-left: 20px;
        }

        .instructions li {
            margin-bottom: 8px;
        }

        /* === ANIMATIONS AVANCÉES === */
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
            20%, 40%, 60%, 80% { transform: translateX(5px); }
        }

        .pulse {
            animation: pulse 0.5s ease-in-out;
        }

        .shake {
            animation: shake 0.5s ease-in-out;
        }

        /* === RESPONSIVE === */
        @media (max-width: 600px) {
            .jeu-container {
                padding: 20px;
            }
            
            .bouton-couleur {
                height: 120px;
            }
            
            .stats-container {
                grid-template-columns: 1fr 1fr;
            }
            
            .controles {
                flex-direction: column;
                align-items: center;
            }
            
            button {
                width: 100%;
                justify-content: center;
            }
        }
        /* thèmes via classe .theme-dark sur <body> */
body.theme-dark {
  background: linear-gradient(135deg, #0f1724, #2c1a1a, #2f2b1f);
  color: #e6eef6;
}
body.theme-dark .jeu-container { background: rgba(20,25,30,0.95); color:#e6eef6; box-shadow:0 10px 30px rgba(0,0,0,0.6); }
