/* ========================
   Entête horizontal
======================== */
.entete {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* alignement vertical du logo et bouton */
    background-color: lightgrey;
    padding: 10px 20px;
    max-height: 200px; /* hauteur maximale */
    height: auto;
    box-sizing: border-box;
}

/* Logo à gauche */
.logo_floressence {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start; /* logo en haut */
    max-height: 200px;
}

.logo_floressence img {
    max-height: 100%;
    height: 150;
}

/* Titre centré */
.text_central {
    flex: 1 1 auto;
    display: flex;
    justify-content: center; /* centré horizontalement */
    align-items: center;     /* centré verticalement */
    text-align: center;
}

.text_central h1.title {
    margin: 0;
    font-size: 2em;
}

/* Bouton déconnexion à droite */
.logout_deconnexion {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* alignement en haut à droite */
}

.logout_deconnexion form {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Style bouton déconnexion */
.logout_deconnexion button {
    margin-top: 0;
}
/* ========================
   Tableau achats
======================== */
#achatsTable {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin-top: 20px;
}

#achatsTable th, #achatsTable td {
    padding: 8px;
    border: 1px solid #ddd;
    word-wrap: break-word;
}

#achatsTable th:nth-child(1), #achatsTable td:nth-child(1) { width: 10%; }
#achatsTable th:nth-child(2), #achatsTable td:nth-child(2) { width: 10%; }
#achatsTable th:nth-child(3), #achatsTable td:nth-child(3) { width: 35%; }
#achatsTable th:nth-child(4), #achatsTable td:nth-child(4) { width: 45%; }

/* Fichiers masqués */
.files-list {
    display: none;
    margin-top: 5px;
    padding-left: 15px;
}

.files-list a {
    display: block;
    text-decoration: none;
    color: #007bff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.files-list a:hover {
    text-decoration: underline;
}

ul.errorlist {
  list-style: none;
  margin: 0;
  padding: 0;
  color: red; /* Tu peux mettre une couleur d'erreur si besoin */
}
ul.errorlist li {
  margin: 0;
  padding: 0;
}


/* ========================
   Responsive
======================== */
@media screen and (max-width: 1280px) {
    .entete {
        flex-direction: column;
        align-items: center;
        max-height: none;
    }

    .logo_floressence, .logout_deconnexion, .text_central {
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }

    .text_central {
        justify-content: center;
        align-items: center;
    }

    .logout_deconnexion form {
        align-items: center;
    }
}
