body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.container {
    width: 90%;
    max-width: 1200px; /* Limite la largeur maximale pour les grands écrans */
    margin: 0 auto;
    padding: 20px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Espace entre les champs */
    justify-content: center; /* Centre les champs horizontalement */
}

.input-group {
    flex: 1;
    min-width: 220px; /* Largeur minimum pour chaque champ */
    margin-bottom: 20px;
}

input[type="text"], select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 2px solid #048970; /* Bordure verte pour les champs */
    border-radius: 4px; /* Bordures arrondies */
}

#ipBlock{
    max-width: 90%;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}


th, td {
    text-align: left;
    padding: 8px;
    border: 1px solid #ddd;
    border-right: 1px solid #ddd;
    word-break: break-word;
    /* Remove display: block; if previously set for th, td */
}

tbody {
    display: block;
    max-height: 500px; /* Or whatever height you want */
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #ddd;
}

tr {
    display: table;
    width: 100%;
    table-layout: fixed; /* This can help ensure that all cells in the row have the same width */
}

/* For th elements to fill the table width */
th {
    background-color: #048970; /* or any color you want */
    color: white;
    /* Ensure they act like table header cells */
    display: table-cell;
}

.error-message {
    color: red;
    margin-top: 5px;
}

.class-header td {
    text-align: center; /* Centrer le texte pour les en-têtes de classe A, B, C */
    font-weight: bold;
    background-color: #048970;
    color: white;
}



@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
    }

    .input-group {
        width: 100%; /* Sur les petits écrans, les champs prennent toute la largeur disponible */
    }

}
