* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    justify-content: center;
    padding: 2rem;
    margin: 0;
}

.container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 800px;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-top: 0;
}

.hidden {
    display: none !important;
}

/* Barre de recherche et liste */
#search-bar {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: bold;
}

#verb-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.verb-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
}

.verb-item label {
    cursor: pointer;
    user-select: none;
}

/* Boutons */
button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

button:hover { background-color: #2980b9; }
button:disabled { background-color: #bdc3c7; cursor: not-allowed; }

button.secondary-btn {
    background-color: #ecf0f1;
    color: #7f8c8d;
    width: auto;
    padding: 8px 16px;
    font-size: 14px;
}
button.secondary-btn:hover { background-color: #bdc3c7; color: white; }

.actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Grille d'exercice */
.exercise-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.grid-header {
    font-weight: bold;
    color: #7f8c8d;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

.fr-label {
    font-weight: 500;
}

.exercise-grid input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

/* Validation */
.exercise-grid input.correct {
    border-color: #2ecc71;
    background-color: #ebfaf1;
    color: #27ae60;
}

.exercise-grid input.incorrect {
    border-color: #e74c3c;
    background-color: #fdedec;
    color: #c0392b;
}

#success-msg {
    margin-top: 20px;
    padding: 15px;
    background-color: #d4efdf;
    color: #1e8449;
    text-align: center;
    border-radius: 6px;
    font-weight: bold;
    font-size: 18px;
}