html, body {
    height: 100%; /* S'assurer que le html et le body prennent toute la hauteur de la fenêtre */
    margin: 0;
    padding: 0;
    overflow-y: auto; /* Permettre le défilement global */
    font-family: Courier, monospace;
    background-color: white;
    display: block; /* Utiliser block au lieu de flex pour body */
}


/* Positionner le lien Logs Encrypt/Decrypt */
.log-link {
    margin-top: 20px; /* Espacement au-dessous du <h2> */
    text-align: center; /* Centrer le lien */
}

.logout-link {
    margin-top: 5px;
    text-align: right;
    color: #ab8a43 ;
    font-family: Courier, monospace;
    font-size: 16px 
}

h1 {
    font-family: Courier, monospace;
    text-align: center;
    font-style: normal;
    font-weight: bold;
    color: black;
    font-size: 24px;
    line-height: 24px;
}

h2 {
    font-family: Courier, monospace;
    text-align: center;
    font-style: normal;
    font-weight: bold;
    color: black;
    font-size: 20px;
    line-height: 22px;
}

h3 {
    font-family: Courier, monospace;
    text-align: left;
    font-style: normal;
    font-weight: bold;
    color: black;
    font-size: 24px;
    line-height: 24px;
}

h4 {
    font-family: Courier, monospace;
    text-align: left;
    font-style: normal;
    font-weight: bold;
    color: black;
    font-size: 20px;
    line-height: 22px;
}

.directory-name {
    font-family: Courier, monospace;
    font-style: normal;
    font-weight: normal;
    color: black;
    font-weight: bold;
    font-size: 18px;
    line-height: 22px;
}

main {
    padding: 20px 60px 20px;
    min-height: 100vh; /* S'assurer que le main prend au moins toute la hauteur */
    overflow-y: auto; /* Permettre le défilement dans le contenu principal si nécessaire */
    padding-top: 0px; /* Réduit l'espacement en haut du contenu principal */
}

section {
    background-color: white;
    margin: 15px 0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    color: black;
}

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

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: white;
    color: black;
    font-weight: bold; /* Rend le texte des en-têtes de colonne en gras */
    padding: 8px;
    text-align: left;
}

td {
    background-color: white;
    color: black;
    font-weight: normal;
}

.name-width {
    width: 40%;
}

.confidentiality-width {
    width: 60%;
    padding-left: 5cm; /* Ajout de ce padding pour déplacer le contenu de la colonne vers la droite */
}

a {
    color: black;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

nav {
    background-color: #f8f9fa;
    padding: 10px;
}

.top-left-link {
    position: absolute; /* Assure un placement absolu par rapport au <header> */
    top: 10px;
    left: 10px;
    margin: 0; /* Supprime les marges inutiles */
}

.top-left-link a {
    color: red !important;
    font-family: Courier, monospace;
    font-weight: 500;
    font-size: 14px;
}

.top-left-link a:hover {
    text-decoration: underline;
}

.login-form button {
    display: block;
    margin: 0 auto; /* Centre horizontalement */
}

/* Effet au survol */
.login-form .login-button:hover {
    background-color: #ab8a43; /* Couleur de fond plus foncée au survol */
}

/* Style pour le bouton de connexion */
.login-form .login-button {
    display: block;
    margin: 0 auto;         /* Centrer le bouton */
    padding: 5px 30px;     /* Taille du bouton (plus grand) */
    font-size: 1.2rem;      /* Taille de la police */
    font-family: inherit;   /* Utiliser la même police que le parent (h1) */
    color: white;           /* Couleur du texte */
    background-color: #ab8a43; /* Couleur de fond */
    border: none;           /* Retirer la bordure */
    border-radius: 5px;     /* Coins arrondis */
    cursor: pointer;        /* Curseur pointeur */
    transition: background-color 0.3s ease; /* Effet de transition */
}

/* Effet au survol */
.login-form .login-button:hover {
    background-color: #8f722d; /* Couleur de fond plus foncée au survol */
}
.nav-link {
    color: #ab8a43;           
    text-decoration: underline; /* Soulignement pour l'apparence classique */
    cursor: pointer;       /* Curseur en forme de main */
}

/* Style pour le survol du lien */
.nav-link:hover {
    color: #8f722d;       /* Couleur plus foncée au survol */
    text-decoration: none; /* Supprime le soulignement au survol (optionnel) */
}

#logs {
    white-space: pre-wrap;
    font-size: 16px;
    padding: 10px; /* Ajoute un espace de 10 pixels entre le contenu de l'élément et ses bordures internes (intérieur du conteneur #logs) */
    height: 100vh; /* Définit la hauteur de l'élément à 100% de la hauteur visible de la fenêtre du navigateur */
    overflow-y: scroll;
}

.cartonnages-link {
    color: red !important;
}

/* Positionner le lien en haut à droite */
.log-link {
    margin-top: 20px; /* Espacement au-dessous du <h2> */
    text-align: center; /* Centrer le lien */
}

/* Style du texte du lien */
.log-link-text {
    font-size: 14px;
    color: #ab8a43; /* Couleur du texte */
    text-decoration: none; /* Supprime le soulignement */
    font-family: "Courier New", Courier, monospace; /* Police monospace */
}

/* Changer la couleur au survol */
.log-link-text:hover {
    color: #8f722d;
    text-decoration: underline; /* Ajoute un soulignement au survol */
}

.logs-button {
    display: inline-block;
    padding: 5px 15px;
    font-size: 16px;
    font-family: "Courier New", Courier, monospace;
    color: white;
    background-color: #ab8a43;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Effet au survol */
.logs-button:hover {
    background-color: #8f722d;
    transform: scale(1.05);
}

.logs-container {
    display: flex;
    justify-content: center;
    margin-top: 10px; /* Ajuste l'espace sous le titre */
    margin-bottom: 5px;
    padding-bottom: 0px;
    width: 100%;
}

.footer-container {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    width: 100%;
    margin-top: 20px;
    padding: 10px 20px;
}

.nav-link {
    color: #ab8a43;
    text-decoration: underline;
    font-size: 14px;
    font-family: "Courier New", Courier, monospace;
    cursor: pointer;
}

.nav-link:hover {
    color: #8f722d;
}

/* Titre et sous-titre restent en haut */
.header-text {
    text-align: center;
    margin-bottom: 10px;
}

/* Conteneur avec les liens à gauche et infos à droite */
.header-bottom {
    display: flex;
    justify-content: space-between; /* Aligne les liens à gauche et les infos à droite */
    align-items: center;
    width: 100%;
    padding: 10px 20px;
}

/* Style des liens à gauche */
.nav-links {
    display: flex;
    flex-direction: column; /* Aligne les liens verticalement */
    align-items: flex-start; /* Assure l'alignement à gauche */
    gap: 5px; /* Espacement entre les liens */
}

/* Style des infos à droite */
.header-info {
    text-align: right;
}

/* Alignement du bouton sous la ligne des liens et infos */
.logs-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    padding: 10px 20px;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-top: -60px; /* Ajuster cette valeur pour remonter l'ensemble */
    position: relative;
}

/* new */
header {
    text-align: center;
    padding: 20px 0;
    background-color: white;
    color: black;
}

.header-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.header-subtitle {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

.header-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* Assurer une largeur égale des colonnes */
    border: none;
}

.header-table td {
    vertical-align: top;
    padding: 5px;
}

.header-left {
    width: 33%;
    text-align: left;
    vertical-align: middle;
}

.header-left a {
    color: #ab8a43;
    padding-left: 10px;
    text-decoration: none;
    margin-bottom: 2px; /* Réduction de l'espacement entre les liens */
    display: inline-block; /* Permet une hauteur plus compacte */
}

.header-left a:hover {
    text-decoration: underline;
}

.header-center {
    width: 33%;
    text-align: center;
    vertical-align: middle;
}

.logs-button {
    display: inline-block;
    padding: 8px 20px;
    font-size: 16px;
    font-family: "Courier New", Courier, monospace;
    color: white;
    background-color: #ab8a43;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.logs-button:hover {
    background-color: #8f722d;
    transform: scale(1.05);
}

.header-right {
    font-size: 12px;
    padding-right: 10px;
    width: 33%;
    text-align: right;
    vertical-align: middle;
    white-space: nowrap; /* Évite que les infos passent à la ligne */

}
.logout-link {
    display: block;
    margin-top: 5px;
    color: black;
    text-decoration: none;
    font-weight:bold;
}

.logout-link:hover {
    text-decoration: underline;
}

.header-table, .header-table td, .header-table th {
    border: none !important;
}

.connexion-container {
    display: flex;
    align-items: baseline; /* Alignement correct */
    gap: 10px; /* Espace entre "Connexion" et la phrase */
}

.connexion-container span {
    font-style: italic;
    font-size: 15px;
    color: rgb(59, 59, 59);
}

/* Style pour le formulaire de connexion */
.login-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Style pour chaque groupe de label et input */
.form-group {
    margin-bottom: 15px;
}

/* Style pour les labels */
.form-group label {
    display: block;
    margin-bottom: 5px;
}

/* Style pour les champs de saisie */
.form-group input {
    width: auto; /* La largeur est déterminée par l'attribut size */
    font-family: inherit; /* Hérite de la police du document */
    font-size: inherit;   /* Hérite de la taille de police du document */
}

/* Assure que chaque ligne (label + input) est bien alignée */
.form-group {
    display: flex;
    align-items: center; /* Aligne les éléments verticalement */
    gap: 10px; /* Espace entre le label et l'input */
    margin-bottom: 10px; /* Espace entre les champs */
}

/* Style des labels */
.form-group label {
    white-space: nowrap; /* Empêche les labels de passer à la ligne */
    font-weight: normal;
}

/* Style des champs de saisie */
.form-group input {
    flex-grow: 1; /* Permet aux champs de saisie de s'adapter à la largeur disponible */
    font-family: inherit;
    font-size: inherit;
}

