/*Accueil tuteur*/
/* Variables et Reset */
:root {
    --primary-color: #3e8849;
    --secondary-color: #45a049;
    --sidebar-width: 250px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}
h2 {
    color: var(--primary-color);
    margin-right: 900px ;
    margin-bottom: 50px;

}

/* Layout */
.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);

    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
}

.logo {
    padding: 20px;
    text-align: center;
}

.logo img {
    max-width: 100px;
}

.nav-links {
    list-style: none;
    margin-top: 50px;
}

.nav-links li {
    padding: 15px 25px;
}

.nav-links li.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 20px;
}

.collapse-button {
    position: absolute;
    width: 50px; /* Taille du cercle */
    height: 50px; /* Taille du cercle */
    bottom: 20px; /* Position en bas */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    display: flex; /* Active Flexbox */
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
    border-radius: 50%; /* Cercle */
    cursor: pointer;
}
.collapse-icon {
    font-size: 16px; /* Ajuste la taille de l'icône si besoin */
    color: white; /* Couleur de l'icône */
}



/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 80px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.top-bar h1 {
    font-size: 24px;
    color: #333;
}

.user-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.user-menu a {
    text-decoration: none;
    color: #666;
}

.logout {
    color: #666;
}

/* Card Content */
.content-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto; /* Permet le défilement si nécessaire */
    box-sizing: border-box;
}

/* Table */
.students-table {
    width: 100%;
    min-width: 800px; /* Largeur minimum pour éviter une compression excessive */
    border-collapse: separate;
    border-spacing: 0;
}

.students-table th,
.students-table td {
    border: 1px solid #E3E6F0;
    text-align: left;
    padding: 12px 15px;
    white-space: nowrap;
}

.students-table th {
    background: #f8f9fc;
    font-weight: 600;
    color: #666;
}

.students-table tbody tr:hover {
    background-color: #f9f9f9;
}


.students-table td:last-child {
    text-align: center;
    min-width: 100px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .content-card {
        width: 95%;
        padding: 15px;
    }

    .students-table th,
    .students-table td {
        padding: 8px 10px;
        font-size: 14px;
    }
}

/* Buttons */
.edit-btn,
.view-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    margin: 0 5px;
    font-size: 16px;
}

.edit-btn:hover,
.view-btn:hover {
    color: var(--primary-color);
}

/*Informations tuteurs*/

/* Styles spécifiques pour la page Mes Informations */
.info-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
    border-radius: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 100px;
    font-size: 14px;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
}


@media (max-width: 768px) {
    .info-form {
        padding: 15px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .submit-btn {
        padding: 10px 20px;
    }
}

/*PAGE CONNEXION*/
/* Page de connexion */
.login-container {
    min-height: 100vh;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Carte de connexion */
.login-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    margin: 20px;
}

/* Logo de la connexion */
.logo img {
    height: 40px;
    width: auto;
    margin-bottom: 20px;
}

/* Titre de la connexion */
h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
    text-align: center; /* Centrer le titre */
}

/* Formulaire de connexion */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Champ de saisie */
.login-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #E0E0E0;
    border-radius: 25px;
    font-size: 14px;
}

/* Bouton de connexion */
.login-button {
    background-color: var(--primary-color);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
}

/* S'assurer que les champs de formulaire ont un espacement approprié */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #E0E0E0;
    border-radius: 50px;
    font-size: 14px;
}

/*EDIT INFORMATIONS*/
/* Section élève, entreprise et tuteur */
.informations-eleve,
.informations-entreprise,
.informations-tuteur {
    margin-bottom: 30px;
}

.informations-eleve h2,
.informations-entreprise h2,
.informations-tuteur h2 {
    font-size: 18px;
    color: var(--primary-color);
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}




.submit-btn2 {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    width: 80%;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.submit-btn2:hover{
    background-color: var(--secondary-color);
}

/*Alerte*/

.alertes-table {
    width: 100%;
    min-width: 800px; /* Largeur minimum pour éviter une compression excessive */
    border-collapse: separate;
    border-spacing: 0;
}

.alertes-table th,
.alertes-table td {
    border: 1px solid #E3E6F0;
    text-align: left;
    padding: 12px 15px;
    white-space: nowrap;
}

.alertes-table th {
    background: #f8f9fc;
    font-weight: 600;
    color: #666;
}

.alertes-table tbody tr:hover {
    background-color: #f9f9f9;
}


.alertes-table td:last-child {
    text-align: center;
    min-width: 100px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .content-card {
        width: 95%;
        padding: 15px;
    }

    .alertes-table th,
    .alertes-table td {
        padding: 8px 10px;
        font-size: 14px;
    }
}

.btnvert {
    background: var(--primary-color);
    color: #000000;
    border-style: none;
    height: 30px;
    width: 80px;
    border-radius: 10px;
    font-size: 18px;
    margin: 10px;
}
    /* user-friendly */

    .tab-header {
        background-color: #f9f9f9;
        color: #333;
        padding: 10px 15px;
        cursor: pointer;
        text-align: center;
        border-bottom: 2px solid transparent;
    }

    /* Effet au survol */

    .tab-header:hover {
        background-color: #e0e0e0;
        border-bottom: 2px solid #45a049;
    }

.btngris {
    background: rgba(62, 136, 73, 0.5);
    color: rgba(62, 136, 73, 0.75);
    border-style: none;
    height: 30px;
    width: 80px;
    border-radius: 10px;
    font-size: 18px;
    margin: 10px;
}
/* Onglet actif (sélectionné) */
.tab-header.active-tab {
    background-color: #45a049;
    color: white;
    border-bottom: 2px solid #388E3C;
    font-weight: bold;
}

.add-btn {
    background-color: #4CAF50;
    border: none;
    color: white;
    font-size: 14px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 50%;
    padding: 5px 8px;
}
.add-btn:hover {
    background-color: #388E3C;
}