body { 
    font-family: Arial, sans-serif; 
    padding: 20px; 
    background-color: #f4f4f9; 
}

.container { 
    max-width: 500px; /* On a agrandi ici */
    margin: 0 auto; 
    background: white; 
    padding: 20px; 
    border-radius: 8px; 
    box-shadow: 0 0 10px rgba(0,0,0,0.1); 
}

/* Remplace l'ancien .grille-pattern input */
.grille-pattern input {
    width: 40px;  /* On a réduit un peu ici */
    height: 40px; 
    text-align: center;
    font-size: 20px;
    text-transform: uppercase;
    font-weight: bold;
    padding: 0;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    margin-top: 15px;
}

input { 
    width: 100%; 
    padding: 10px; 
    box-sizing: border-box; 
    border: 1px solid #ccc;
    border-radius: 4px;
}

button { 
    width: 100%; 
    padding: 12px; 
    margin-top: 20px;
    background-color: #007BFF; 
    color: white; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
    font-size: 16px;
    font-weight: bold;
}

button:hover { 
    background-color: #0056b3; 
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    background: #e9ecef;
    margin-bottom: 5px;
    padding: 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    color: #333;
}

.grille-pattern {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

/* --- NOUVEAU STYLE POUR LE COMPTEUR DE LONGUEUR --- */
.compteur-longueur {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    margin-top: 5px;
}

.btn-rond {
    width: 50px;
    height: 50px;
    border-radius: 50%; /* Rend les boutons parfaitement ronds */
    font-size: 24px;
    font-weight: bold;
    padding: 0;
    margin-top: 0; /* Annule la marge de ton style bouton de base */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #007BFF;
}

.btn-rond:active {
    transform: scale(0.95); /* Petit effet d'enfoncement au clic */
}

#affichage-longueur {
    font-size: 26px;
    font-weight: bold;
    width: 30px;
    text-align: center;
    color: #333;
}
