@charset "utf-8";
/* CSS Document */


        :root {
            --primary-color: #66CCFF;
            --accent-color: #FFCC00;
            --bg-light: #FFFF66;
            --text-dark: #333333;
            --success-color: #16522e; /* Vert foncé lisible mis à jour */
            --error-color: #e74c3c;
        }

        body {
            font-family: 'Verdana', sans-serif;
            background-color: #ffffff;
            color: var(--text-dark);
            line-height: 1.6;
            margin: 0;
            padding: 10px;
        }

        .container {
            max-width: 800px;
            margin: 0 auto;
            padding: 10px;
        }

        header {
            text-align: center;
            margin-bottom: 20px;
        }

        header h1 {
            font-size: 1.8rem;
            color: var(--text-dark);
            margin: 10px 0;
        }

        /* --- ASTUCE POUR AJOUTER (SOLUTION) EN ROUGE AUTOMATIQUEMENT --- */
        body.mode-solution header h1::after {
            content: " - Solution";
            color: #cc0000;
            font-weight: bold;
        }

        /* Introduction SEO */
        .seo-intro {
            font-size: 0.95rem;
            color: #555555;
            background-color: #f9f9f9;
            border-left: 4px solid var(--primary-color);
            padding: 15px;
            margin-bottom: 25px;
            border-radius: 0 8px 8px 0;
        }

        .consigne {
            background-color: var(--bg-light);
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 30px;
            font-size: 0.95rem;
            font-weight: bold;
            border: 1px dashed #e6c200;
        }

        /* Layout Responsive */
        .game-layout {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        @media (max-width: 768px) {
            .game-layout {
                grid-template-columns: 1fr;
            }
        }

        .definitions ol {
            padding-left: 20px;
            margin: 0;
        }

        .definitions li {
            margin-bottom: 20px;
            font-size: 0.95rem;
        }

        .text-solution {
            color: #d35400;
            font-weight: bold;
            text-decoration: underline;
        }

        .grid-container {
            background-color: var(--primary-color);
            padding: 15px;
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            align-items: flex-start;
        }

        .word-row {
            display: flex;
            align-items: center;
            gap: 10px;
            width: 100%;
        }

        .row-number {
            font-weight: bold;
            width: 20px;
            text-align: center;
        }

        .inputs-wrapper {
            display: flex;
            gap: 4px;
            flex-wrap: wrap;
        }

        .letter-input {
            width: 34px;
            height: 34px;
            text-align: center;
            font-size: 1.3rem;
            font-weight: bold;
            text-transform: uppercase;
            border: 2px solid #ffffff;
            border-radius: 6px;
            background-color: #ffffff;
            transition: all 0.2s;
        }

        .letter-input:focus {
            outline: 3px solid var(--text-dark);
            background-color: #fffdec;
        }

        .actions {
            background-color: var(--accent-color);
            padding: 20px;
            border-radius: 8px;
            text-align: center;
            margin-top: 30px;
        }

        .btn-group {
            margin-bottom: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 5px;
        }

        .btn {
            background-color: #ffffff;
            border: 2px solid var(--text-dark);
            padding: 10px 20px;
            font-size: 1rem;
            font-weight: bold;
            cursor: pointer;
            border-radius: 25px;
            margin: 5px;
            transition: all 0.2s;
        }

        .btn:hover {
            background-color: var(--text-dark);
            color: #ffffff;
        }

        .btn-info {
            font-size: 0.8rem;
            display: inline-block;
            margin-left: 5px;
            color: #444;
        }

        @media (max-width: 600px) {
            .btn-info {
                display: block;
                margin-top: 2px;
                margin-left: 0;
            }
        }

        #feedback {
            margin-top: 15px;
            font-size: 1.1rem;
            font-weight: bold;
            text-align: center;
            min-height: 25px;
        }

        .success { color: var(--success-color); }
        .error { color: var(--error-color); }

        footer {
            margin-top: 50px;
            text-align: center;
            font-size: 0.9rem;
            border-top: 1px solid #eee;
            padding-top: 20px;
        }

        footer p { margin: 8px 0; }
        footer a { color: #0000CC; text-decoration: none; font-weight: bold; }
        footer a:hover { text-decoration: underline; }

        /* --- CONFIGURATION SPÉCIALE POUR L'IMPRESSION --- */
        .copyright-imprimer {
            display: none;
        }

        @media print {
            .phrase-clavier, 
            .actions, 
            .seo-intro, 
            header p, 
            footer { 
                display: none !important;
            }

            .grid-container {
                filter: grayscale(100%) !important;
                background-color: #dddddd !important; 
            }
            .letter-input {
                border: 2px solid #000000 !important; 
            }

            .copyright-imprimer {
                display: block !important;
                text-align: center !important;
                margin-top: 40px !important;
                font-size: 0.9rem !important;
                font-weight: bold !important;
                color: #000000 !important;
                line-height: 1.5;
            }
            .copyright-imprimer span {
                display: block;
                font-size: 0.8rem !important;
                font-weight: normal !important;
                margin-top: 5px;
            }
        }
    