* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', 'Arial', cursive;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
}

header {
    background: #FFD700;
    border: 5px solid #FF6B6B;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 0 #C44569;
    text-align: center;
}

h1 {
    color: #FF1744;
    font-size: 2.5em;
    text-shadow: 3px 3px 0 #000;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 1.3em;
    font-weight: bold;
    color: #2C3E50;
    margin-bottom: 15px;
}

.score-board {
    display: flex;
    justify-content: center;
    gap: 40px;
    font-size: 1.3em;
    font-weight: bold;
    color: #2C3E50;
    margin-bottom: 15px;
}

.btn-control {
    background: #4ECDC4;
    color: white;
    border: 3px solid #1A535C;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 0 #1A535C;
    transition: all 0.1s;
}

.btn-control:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #1A535C;
}

.btn-control:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #1A535C;
}

.game-area {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 25px;
    margin-bottom: 20px;
}

.zone-verbe {
    background: #FFF3CD;
    border: 5px solid #FFB300;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 6px 0 #E65100;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.zone-verbe h2 {
    color: #D84315;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

.verbe-display {
    background: #FF6B6B;
    color: white;
    padding: 30px;
    border-radius: 15px;
    border: 4px solid #C44569;
    box-shadow: 0 6px 0 #8B2E52;
    text-align: center;
    margin-bottom: 20px;
    min-width: 200px;
}

.verbe-infinitif {
    font-size: 3em;
    font-weight: bold;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.3);
}

.instructions {
    font-size: 1.1em;
    font-weight: bold;
    color: #D84315;
    text-align: center;
    margin-bottom: 15px;
}

.progress {
    font-size: 1.2em;
    color: #D84315;
    background: rgba(255,255,255,0.7);
    padding: 10px 20px;
    border-radius: 10px;
    border: 2px solid #FFB300;
}

.zone-conjugaison {
    background: #E8F5E9;
    border: 5px solid #4CAF50;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 6px 0 #2E7D32;
    overflow-x: auto;
}

.zone-conjugaison h2 {
    color: #1B5E20;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

.conjugaison-table {
    margin-bottom: 25px;
}

.conjugaison-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 3px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 0 #2E7D32;
}

.conjugaison-table th {
    background: #9C27B0;
    color: white;
    padding: 15px 10px;
    font-size: 1.1em;
    text-transform: uppercase;
    border: 2px solid #6A1B9A;
}

.conjugaison-table td {
    padding: 12px 10px;
    border: 2px solid #E0E0E0;
}

.pronom-cell {
    background: #F3E5F5;
    font-weight: bold;
    color: #4A148C;
    text-align: center;
    font-size: 1.2em;
    min-width: 120px;
}

.input-conjugaison {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    font-weight: bold;
    border: 2px solid #9C27B0;
    border-radius: 6px;
    font-family: 'Comic Sans MS', 'Arial', cursive;
    transition: all 0.3s;
    min-height: 45px;
}

.input-conjugaison:focus {
    outline: none;
    border-color: #4A148C;
    background: #F3E5F5;
    transform: scale(1.05);
}

.input-conjugaison.correct {
    background: #C8E6C9;
    border-color: #4CAF50;
}

.input-conjugaison.incorrect {
    background: #FFCDD2;
    border-color: #F44336;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.btn-primary {
    background: #4CAF50;
    color: white;
    border: 4px solid #2E7D32;
    padding: 15px 40px;
    font-size: 1.3em;
    border-radius: 15px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 6px 0 #1B5E20;
    display: block;
    margin: 0 auto;
    transition: all 0.1s;
    width: 100%;
    max-width: 400px;
}

.btn-primary:hover {
    transform: translateY(2px);
    box-shadow: 0 4px 0 #1B5E20;
}

.btn-primary:active {
    transform: translateY(6px);
    box-shadow: 0 0 0 #1B5E20;
}

.feedback {
    background: #FFC107;
    border: 4px solid #F57C00;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #E65100;
    min-height: 60px;
    box-shadow: 0 4px 0 #BF360C;
    display: none;
}

.feedback.show {
    display: block;
    animation: bounce 0.5s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .game-area {
        grid-template-columns: 1fr;
    }
    
    .conjugaison-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .verbe-infinitif {
        font-size: 2em;
    }
}
