body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    padding: 20px;
}
h1 {
    font-size: 2rem;
    text-align: center;
}
p {
    font-size: 1.2rem;
    text-align: center;
    padding-bottom: 5px;
}
#totalAffiche {
    font-weight: bold;
}
form {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 0 auto;
    text-align: center;
    max-width: 100%;
    padding: 10px;
}
label {
    display: block;
    margin-top: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: left;
}
.nombre {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: flex-start;
}
input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid black;
    border-radius: 5px;
    margin-top: 5px;
    box-sizing: border-box;
    font-size: 1rem;
}
button[type="submit"], button[type="reset"] {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.5s;
}
button[type="submit"]:hover, button[type="reset"]:hover {
    background-color: #0050a5;
}
#resultat, #details {
    font-size: 1.2rem;
    margin-top: 20px;
    text-align: center;
}
.select {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    flex-direction: column;
    align-items: flex-start;
}
.select label {
    margin-right: 0;
    margin-top: 5px;
}
.select select {
    padding: 10px;
    border: 1px solid black;
    border-radius: 5px;
    font-size: 1rem;
}
form#form {
    justify-content: space-between;
}
form#form label {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}
form#form input,
form#form select {
    width: 100%;
}
form#form .button-container {
    flex-direction: column;
    align-items: center;
}
form#form button {
    margin-left: 0;
    margin-top: 10px;
    width: 100%;
}
form#form div {
    display: flex;
    justify-content: space-between;
    width: 100%;
}
*[required] {
    border: 1px solid red;
}
.error {
    text-align: center;
    color: red;
}
input[type="number"] + label {
    display: block;
}

#detailsTable {
    border-collapse: collapse;
    width: 50%;
    margin: auto;
    margin-top: 20px;
}
#detailsTable th, #detailsTable td {
    text-align: left;
    padding: 8px;
    border: 1px solid #ddd;
}
#detailsTable th {
    background-color: #f2f2f2;
}
#detailsTable tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}
#detailsTable tfoot {
    background-color: #ddd;
}
.select.hidden {
    display: none;
}

/*
** LA PARTIE CI DESSOUS EST A RETIRER SI LE SITE GERE DEJA LES LANGUES **
*/

.language-selector {
    font-size: 16px;
    margin-right: 10px;
}
.language-selector select {
    padding: 5px 10px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 4px;
}

/*
** LA PARTIE CI DESSUS EST A RETIRER SI LE SITE GERE DEJA LES LANGUES **
*/

@media screen and (min-width: 650px) {
    form {
        max-width: 700px;
        padding: 20px;
    }
    .select {
        flex-direction: row;
    }
    .select label {
        margin-right: 10px;
    }
    form#form label {
        justify-content: none;
        display: flex;
        flex-direction: column;
    }
    form#form div>label, form#form div>input {
        flex-basis: 100%;
    }
    form#form button {
        margin-left: 10px;
        width: 100%;
    }
    form#form .button-container {
        display: flex;
        flex-direction: row;
        width: 100%;
    }
    #resultat, #details {
        margin-top: 10px;
    }
    .nombre {
        display: initial;
        justify-content: initial;
        margin-top: initial;
        flex-direction: initial;
        align-items: initial;
    }
    input[type="number"] {
        margin-top: 20px;
    }
}