* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Style général du corps de la page */
body {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
    display: flex;
    justify-content: center;
    align-items: center;
    margin:0;
}

/* Conteneur principal */
.container {
    display: flex;
    justify-content: space-between; /* Espace autour des éléments */
    width: 90%; /* Largeur du conteneur principal */
}

/* Style du conteneur du tableau */
.table-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 75%; /* Largeur du conteneur du tableau */
}

/* Style du titre du tableau */
.table-container h2 {
    font-size: 1.2em;
    margin-bottom: 15px;
    text-align: center;
}



/* Style du conteneur du formulaire */

.form-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 14%; /* Largeur du conteneur du formulaire */
    max-height: 50vh /*hauteur max du container */

}

/* Style général du tableau */


table {
    width: 90%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 5px;
}

/* Style des en-têtes de colonnes */
table th {
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    text-align: center;
    border-bottom: 2px solid #ddd;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 2; 
}

/* Style des lignes de données */
table td {
    padding: 10px;
    text-align: center;
    border: 1px solid rgb(14, 1, 1);
    font-weight: normal;
}

/* Style pour les lignes alternées (optionnel) */
table tr:nth-child(even) {
    background-color: #c5c5c5;
}

/* Style au survol des lignes (optionnel) */
table tr:hover {
    background-color: #d3ff0c;
    font-weight: bold;
}



/* Style du formulaire */


form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 85%;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 2;
}

/* Style des titres du formulaire */
form h2 {
    font-size: 1.2em;
    margin-bottom: 15px;
    text-align: center;
}

/* Style des champs de formulaire */
form .form-group {
    margin-bottom: 15px;
}

/* Style des labels */

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

/* Style des champs de saisie */

form input[type="text"],
form input[type="password"],
form select {
    width: 100%;
    padding: 8px;
    font-size: 0.9em;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Style des boutons */

form button {
    margin-top: 15px;

    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

/* Style au survol des boutons */
form button:hover {
    background-color: #0056b3;
}

/* Media query pour les petits écrans */
@media screen and (max-width: 400px) {
    form {
        width: 90%;
    }
}

