/*****************header*******************/

/* 📌 Styles du header */
.header {
    color: rgba(255, 255, 255, 0.856);    
    padding: 10px 10px;
}

.header-button {
    display: flex; /* Aligner les boutons horizontalement */
    gap: 10px; /* Espacement entre les boutons */
    justify-content: center; /* Centre les boutons horizontalement */
    flex-wrap: wrap; /* Permet de passer en plusieurs lignes si l'écran est trop petit */
    

}

.header-button a {
    background-color: #1aa9a1;
    color: rgb(255, 255, 255);
    padding: 10px 10px;
    cursor: pointer;
    border-radius: 10px;
    text-align: center;
    font-size: 16px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px; /* Largeur minimale pour uniformiser */    
}

.header-button a:hover {
    background-color: rgb(32, 107, 102);
}

/* id comme classe mais plus ciblé et commence par # */   
#logoutbtn {  
    background-color: #fc6060 !important; /* !important pour prendre la priorité */   
}

#logoutbtn:hover {
    background-color: #da3c3c !important;
}





/* 🌍 Style général */
body { 
    color: rgba(255, 255, 255, 0.856);
    font-family: Arial, sans-serif;
    text-align: center;
    padding-left: 5px;
    padding-right: 5px;
    color: black;
}

/* 📌 Conteneur principal */
.container { 
    background-color: rgb(255, 255, 255);
    max-width: 500px;
    max-height: 100%;
    margin: auto;
    border: 1px solid #000000;
    border-radius: 10px;
    margin-top: 10px;
    font-size: 14px;
}


.table-container { 
    background-color: rgb(255, 255, 255);

    max-height: 100%;
    display: flex; 
    justify-content: center;  /* Centre horizontalement */
    align-items: center;  /* Centre verticalement */
    margin-top: 10px;
    font-size: 12px;
    text-align: center; /* Centre le texte */


}


.footer { 
    background-color: rgb(255, 255, 255);
    color: rgb(71, 71, 71);
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    border: none;
    border-radius: 10px;
    margin-top: 30px;
    font-size: 11px;


}

.login-body { 
    font-family: Arial, sans-serif; 
    text-align: center; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    height: 100%; /* Assure un bon centrage vertical */
    background-color: #ccccccc2; 
    padding: 0; /* Suppression du padding pour éviter le décalage */
}

.login-container {
    background-color: rgb(127, 223, 216);
    padding: 50px;
    border-radius: 10px;
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.1);
    width: 80%; /* Adaptatif */
    max-width: 250px; /* Limite la largeur */
    min-height: 20vh; /* Hauteur minimale */
    border: 2px solid rgb(127, 223, 216);
    
    /* Centrage absolu */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-title {
    font-size: 1.5rem; /* Taille adaptative */
    font-weight: bold;
    margin-bottom: 1rem;
}

.login-form {    
    text-align: center;
    padding: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #ffffff;
}

.login-label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
    text-align: center;
}

.login-input {
    display: block;
    width: 80%; /* Taille adaptative */
    max-width: 90%; /* Empêche le dépassement sur mobile */
    padding: 10px;
    margin: 0 auto 10px auto; /* Centrage */
    border: 1px solid #ccc;
    border-radius: 10px;
    text-align: center;
    box-sizing: border-box; /* Évite que le padding élargisse l'élément */
}

.login-button {
    background-color: #1aa9a1;
    color: rgb(255, 255, 255);
    padding: 10px;
    width: 80%;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    text-align: center;
    display: block;
    margin: 20px auto 10px auto; /* Ajoute un espace de 20px en haut */
    max-width: 200px;
}

.login-button:hover { 
    background-color: rgb(123, 214, 208); 
}

.login-error { 
    color: rgb(255, 90, 90); 
    font-weight: bold;
    margin-bottom: 10px;
}

.login-info {
    margin-top: 1rem;
}

.login-link {
    text-decoration: none;
    color: #1aa9a1;
}

.login-logo {
    display: block;
    margin: 0 auto 30px auto; /* Centre horizontalement avec un espace en bas */
    width: 40%; /* Ajustable selon la taille souhaitée */
    max-width: 120px; /* Évite qu'il devienne trop grand sur grands écrans */
    height: auto; /* Garde le ratio */
}