:root {
    --primary: #3498db;
    --text: #2c3e50;
    --bg: #f8f9fa;
    --border: #e1e8ed;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text);
    margin: 20px 0;
}

.controls {
    position: sticky;
    top: 0;
    background: white;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    z-index: 100;
}

#searchInput {
    flex: 1;
    min-width: 250px;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

#searchInput:focus {
    outline: none;
    border-color: var(--primary);
}

#status {
    font-weight: bold;
    color: var(--primary);
    font-size: 0.9rem;
}

#combinaisons {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ligne {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.ligne:hover {
    background-color: #f1f8ff;
}


.ligne:nth-child(even) {
    background-color: #fafbfc;
}

.numero {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #95a5a6;
    min-width: 70px; 
    font-size: 0.85rem;
}

.phrase {
    margin: 0;
    font-size: 1.05rem;
}

@media (max-width: 600px) {
    .controls {
        flex-direction: column;
        top: 0;
    }
    
    #searchInput {
        width: 100%;
    }

    .ligne {
        padding: 10px;
    }
}