
.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: #ffffff;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
    width: 90%; /* Adaptatif */
    max-width: 300px; /* Limite la largeur */
    min-height: 20vh; /* Hauteur minimale */
    border: 1px solid #8f8f8f;
    
    /* 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: 15px;
    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: 15px;
    text-align: center;
    box-sizing: border-box; /* Évite que le padding élargisse l'élément */
}

.login-button {
    background-color: #0463FA;
    color: rgb(255, 255, 255);
    padding: 10px;
    width: 80%;
    border: none;
    cursor: pointer;
    border-radius: 15px;
    text-align: center;
    display: block;
    margin: 20px auto 10px auto; /* Ajoute un espace de 20px en haut */
}

.login-button:hover { 
    background-color: rgb(0, 66, 207); 
}

.login-error { 
    color: red; 
    font-weight: bold;
    margin-bottom: 10px;
}

.login-info {
    margin-top: 1rem;
}

.login-link {
    text-decoration: none;
    color: #0463FA;
}

.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 */
}





/* Responsive Design */

/* Tablettes */
@media (max-width: 768px) {
    .login-container {
        width: 80%;
        min-height: 55vh;
    }

    .login-input, .login-button {
        width: 90%;
    }
}

/* Mobiles */
@media (max-width: 480px) {
    .login-container {
        width: 95%;
        min-height: 60vh;
    }

    .login-title {
        font-size: 1.2rem;
    }

    .login-form {
        padding: 1rem;
    }

    .login-input, .login-button {
        width: 100%;
    }
}


/*****************header*******************/


/* 📌 Styles du header */
header {
    background-color: rgb(255, 255, 255);
    border-bottom: 1px solid #000000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 📌 Style du menu desktop */
.nav-links {
    display: flex;
    gap: 10px;
}

.nav-links a {
    background-color: #0463FA;
    color: rgb(255, 255, 255);

    border: none;
    cursor: pointer;
    border-radius: 15px;
    text-align: center;
    display: block;
    font-size: 15px; /* Taille de la police ajoutée */
    width: auto; /* Largeur automatique selon le texte */
    font-weight: bold; /* Texte en gras */


}

.nav-links a:hover {
    background-color: darkblue;
    transform: scale(1.05);
    color: rgb(255, 255, 255); /* Couleur du texte lors du survol */
}

/* 📌 Style du bouton Déconnexion */
.nav-links a.logout {
    background-color: red;
}

.nav-links a.logout:hover {
    background-color: darkred;
}

/* 📌 Style du bouton Menu (hamburger) */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
}

/* 📌 Navigation pour mobile */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background-color: white;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
        padding: 10px 0;
    }

    .nav-links a {
        display: block;
        margin: 10px 0;
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }

    .menu-toggle {
        display: block;
    }
}








/* 🌍 Style général */
body { 
    font-family: Arial, sans-serif;
    text-align: center;
    padding: 20px;
    background-color: white;
    color: black;
}

/* 📌 Conteneur principal */
.container { 
    max-width: 700px;
    margin: auto;
    border: 1px solid #000000;
    margin-top: 10px;

}

/* 📋 Tableau */
table { 
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border: 1px solid #000000;
}

th, td { 
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

th { 
    background-color: #f4f4f4;
}

tr:hover { 
    background-color: #f1f1f1;
    cursor: pointer;
}

/* 🎨 Statut des BI */
.status-ok {
    background-color: #e0e0e0; /* Gris clair */
}

.status-on {
    background-color: #ffcccc; /* Rouge clair */
}

.status-oa {
    background-color: #ccffcc; /* Vert clair */
}

.status-pa {
    background-color: #ffeb99; /* Orange clair */
}

/* 🔗 Liens */
a { 
    text-decoration: none;
    color: black;
    display: block;
    width: 100%;
    height: 100%;
    padding: 10px;
}

a:hover { 
    color: blue;
}
