/* Styles globaux pour le corps de la page */
body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 10px;
    box-sizing: border-box; /* Ajouté */
}

.conteneur3 {
    max-width: 800px;
    margin-top: 20px;
    width: 100%; /* Ajouté */
    box-sizing: border-box; /* Ajouté */
}

/* Conteneur principal */
.conteneur, .conteneur2 {
    width: 100%;
    max-width: 800px;
    margin-top: 20px;
    box-sizing: border-box; /* Ajouté */
    
}

.conteneur4 {
    max-width: 800px;
    margin-top: 20px;
    width: 100%; /* Ajouté */
    box-sizing: border-box; /* Ajouté */
    height: 100%;
}

.conteneur4 p {
    line-height: 1.6;
    color: #555;
}

@media (min-width: 1024px) {
    .conteneur2 {
        max-width: 1700px;
    }
}
.conteneur-action, .conteneur-aide {
    background-color: #ffffff;
    padding: 15px;
    border: 3px solid #007BFF;
    border-radius: 10px;
    box-sizing: border-box; /* Ajouté */
    margin-bottom: 10px;
    width: 100%; /* Ajouté */
}

.conteneur-employe {
    display: block;
    padding: 10px;
    margin-bottom: 10px;
    border: 3px solid #1e90ff;
    border-radius: 8px;
    text-decoration: none;
    color: #4b0082;
    transition: background-color 0.3s;
    box-sizing: border-box; /* Ajouté */
}

.conteneur-employe:hover {
    background-color: #f9f9f9;
}

.conteneur-employe span {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
    color: #666;
}

.conteneur-identifiant {
    background-color: rgb(23, 112, 163);
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 0 2px hsla(258, 100%, 49%, 0.384);
    padding: 15px;
    display: flex;
    flex-direction: column;
    width: 100%; /* Ajouté */
    box-sizing: border-box; /* Ajouté */
}

/* Styles pour les titres */
h1, h2, h3 {
    color: #333;
    text-align: center;
}

/* Styles pour les étiquettes */
label {
    margin: 8px 0 5px;
}

.formulaire {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%; /* Ajouté */
    box-sizing: border-box; /* Ajouté */
}

.formulaire5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    width: 100%; /* Ajouté */
    box-sizing: border-box; /* Ajouté */
}

.formulaire3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%; /* Ajouté */
    box-sizing: border-box; /* Ajouté */
}

.formulaire7 {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 8px;
    width: 100%; /* Ajouté */
    box-sizing: border-box; /* Ajouté */
}

#fin, #debut, #date, #contrat, #duree, #id_employe, #type_conge, #debut-export, #fincontrat, #fin-export, #new_password, #employe, #select-employe, #entité-export, #identifiant, #motdepasse, #typeconges, #debutconges, #finconges, .employee, #prenom, #nom, #mail {
    padding-top: 8px;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border: 2px solid hsla(258, 100%, 49%, 0.384);
    border-radius: 4px;
    width: 100%; /* Ajouté */
    box-sizing: border-box; /* Ajouté */
}

.donnee {
    width: 100%; /* Ajouté */
    box-sizing: border-box; /* Ajouté */
}

/* Styles pour les lignes supplémentaires et les totaux d'heures */
.ajouter-ligne, .heures-totales, .heures-totales-semaine, #commentaire {
    background-color: #e9eff5;
    padding: 8px;
    text-align: center;
    border-radius: 5px;
    margin-top: 8px;
    width: 100%;
    box-sizing: border-box; /* Ajouté */
}

/* Styles pour les boutons */
.button {
    background-color: rgb(28, 80, 194);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    width: 100%; /* Ajouté */
    margin-top: 8px;
    margin-bottom: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
    box-sizing: border-box; /* Ajouté */
}

button:hover {
    background-color: rgb(169, 27, 204);
}

#motdepasseperdu:hover {
    background-color: rgb(169, 27, 204);
}

/* Styles pour les listes non ordonnées */
ul {
    list-style-type: none;
    padding: 0;
    width: 100%; /* Ajouté */
    box-sizing: border-box; /* Ajouté */
}

ul li {
    padding: 5px;
    border-bottom: 1px solid #ccc;
    width: 100%; /* Ajouté */
    box-sizing: border-box; /* Ajouté */
}

ul li span {
    float: right;
    box-sizing: border-box; /* Ajouté */
}

span {
    float: right;
    box-sizing: border-box; /* Ajouté */
}

h2, h3 {
    color: rgb(23, 112, 163);
}

.menu {
    background-color: rgb(23, 112, 163);
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box; /* Ajouté */
    color: white;
}

.menu-left {
    display: flex;
    align-items: center;
}

.menu input[type="image"] {
    height: 100%;
    max-height: 50px;
    right: 0;
}

.moitier {
    width: 45%;
    box-sizing: border-box; /* Ajouté */
}

.user-info {
    margin-right: 20px;
}

.hidden {
    display: none;
}

.refuse {
    color: #f44336;
}

.accepte {
    color: #4CAF50;
}

nav a {
    color: white;
    text-decoration: none;
}

.form-semaine {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%; /* Ajouté */
    box-sizing: border-box; /* Ajouté */
}

.form-semaine h3 {
    margin: 0 20px;
}

#RPC {
    border-radius: 10px;
    max-width: 100%;
}

/* Centrer l'image dans le conteneur */
.image-container {
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box; /* Ajouté */
}

#a {
    text-decoration: none;
    text-align: center;
}

#a:hover {
    background-color: rgb(169, 27, 204);
}

.step {
    margin-bottom: 20px;
}

.step-number {
    font-weight: bold;
    color: #333;
}

/* Media Queries pour rendre le site responsive */
@media (max-width: 1000px) {
    .formulaire, .formulaire5, .formulaire7 {
        grid-template-columns: 1fr; /* Une seule colonne sur les petits écrans */
    }

    #identifiant, #motdepasse, #date, .button, #commentaire, #duree, .heures-totales-semaine {
        width: 100%; /* Ajouté */
        box-sizing: border-box; /* Ajouté */
    }



    .conteneur, .conteneur2 {
        max-width: 100%;
    }

    .conteneur-action{
        width: auto;
    }
    .moitier {
        width: 100%;
    }

    .step {
        font-size: 1.2em;
    }

    .form-semaine {
        flex-direction: column;
        width: 100%; /* Ajouté */
        box-sizing: border-box; /* Ajouté */
    }

    .form-semaine h3 {
        margin: 10px 0;
    }

    /* Styles pour agrandir les éléments sur les petits écrans */
    label, input, select, textarea, .button {
        font-size: 1.2em; /* Augmente la taille de la police */
    }

    input[type="checkbox"], input[type="radio"] {
        width: 1.5em; /* Augmente la taille des checkboxes et des boutons radio */
        height: 1.5em;
    }

    .conteneur-identifiant {
        padding: 15px;
        width: 100%; /* Ajouté */
        box-sizing: border-box; /* Ajouté */
    }

    .moitier {
        width: 100%;
    }

    #RPC {
        max-width: 100%;
    }

}
