/* ===============================================================================================================================================================
				CSS De la page login.html
   ===============================================================================================================================================================*/
   /* Styles généraux pour la page */
.login-body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f4f4f9;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-h1 {
    margin-bottom: 20px;
    color: #4CAF50;
}

/* Style du formulaire */
.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-form-group {
    margin-bottom: 20px;
    width: 100%;
}

.login-mail {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 5px 0 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

button.connexion-btn {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

button.connexion-btn:hover {
    background-color: #45a049;
}

#message {
    margin-top: 20px;
    color: red;
}
/* =============================================================================================================================================================== */
/* ===============================================================================================================================================================
				CSS De la page gestionnaire.html
   ===============================================================================================================================================================*/
/* Styles généraux pour la page */
.gestionnaire-body {
    font-family: Arial, sans-serif;
    height: 100vh;
    margin: 0;
    background-color: #f4f4f9;
}

/* Conteneur principal pour centrer le tableau */
.gestionnaire-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto; /* Centre le conteneur sur la page */
    text-align: center; /* Centre les éléments à l'intérieur du conteneur */
}

.gestionnaire-header {
	background-color: #4CAF50;
	color: var(--text-light);
	padding: 15px 30px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gestionnaire-header .gestionnaire-h1 {
	font-size: 1.4rem;
	margin: 0;
}

/* Styles pour le tableau */
.gestionnaire-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

/* Bordure des cellules et du tableau */
.gestionnaire-table, .gestionnaire-th, .gestionnaire-td {
    border: 1px solid #ddd;
}

/* Styles des cellules et titres */
.gestionnaire-th, .gestionnaire-td {
    padding: 10px;
    text-align: left;
}

/* Centrer les titres de colonnes */
.gestionnaire-th {
    text-align: center;
    background-color: #4CAF50;
    color: white;
}

/* Centrer les cellules de la colonne "#" */
.gestionnaire-th:first-child, .gestionnaire-td:first-child {
    text-align: center;
}

/* Centrer les cellules de la colonne "Maternelle / Primaire" => 4 Correspond à la 4ème colonne */
.gestionnaire-th:nth-child(4), .gestionnaire-td:nth-child(4) {
    text-align: center;
}

/* Alternance de couleurs sur les lignes */
.even {
    background-color: #e7f7e7;
}

.odd {
    background-color: white;
}

/* Styles des zones de saisie */
input[type="text"] {
    width: 100%; /* Prend toute la largeur de la cellule */
    padding: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    text-align: center; /* Centre le texte à l'intérieur de l'input */
}

/* Bouton "VALIDER" */
button.gestionnaire-valider {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: block; /* Permet au bouton de devenir un élément de type bloc */
    margin: 20px auto; /* Centre le bouton horizontalement */
    text-align: center; /* Aligne le texte à l'intérieur du bouton */
}

/* Effet au survol du bouton */
button.valider:hover {
    background-color: #45a049;
}

/* =====================================================
				ASPECT DU BOUTON LOGOUT 
   =====================================================*/
/* Conteneur pour le bouton Logout */
.logout-container {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 14px;
}

/* Style du bouton Logout */
.logout-btn {
    text-decoration: none;
    color: #333; /* Couleur discrète */
    background-color: transparent;
    font-size: 16px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.logout-btn i {
    margin-right: 5px; /* Espace entre l'icône et le texte */
}

/* Effet au survol du bouton Logout */
.logout-btn:hover {
    background-color: #f4f4f4;
    border-color: #ccc;
}
/* =============================================================================================================================================================== */


/* ===============================================================================================================================================================
				CSS Des pages Agent.html / Animateur.html / Enseignant.html
   ===============================================================================================================================================================*/
/* Styles généraux pour la page */
.aae-body {
    font-family: Arial, sans-serif;
    height: 100vh;
    margin: 0;
    background-color: #f4f4f9;
}

.aae-main {
	max-width: 1200px;
	margin: 30px auto;
	padding: 20px;
	background: white;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.aae-header {
	background-color: #4CAF50;
	color: var(--text-light);
	padding: 15px 30px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.aae-header .aae-h1 {
	font-size: 1.4rem;
	margin: 0;
}

/* Conteneur principal pour centrer le tableau */
.aae-container {
    width: 90%;
    max-width: 1200px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Titre secondaire */
.aae-h2 {
    margin-top: 10px;
/*	background-color: #4CAF50;*/
	color: var(--text-light);
    font-size: 20px;
    font-weight: normal;
	padding-bottom: 5px;
}

/* Titre secondaire */
.aae-h2-fondblanc {
    margin-top: 10px;
	color: black;
    font-size: 20px;
    font-weight: normal;
	padding-bottom: 5px;
}

/* Style du tableau */
.aae-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

/* Bordure des cellules et du tableau */
.aae-table, .aae-th, .aae-td {
    border: 1px solid #ddd;
}

/* Styles des cellules et titres */
.aae-th, .aae-td {
    padding: 10px;
    text-align: left;
}

/* Centrer les titres de colonnes */
.aae-th {
    text-align: center;
    background-color: #4CAF50;
    color: white;
}


/* Centrer les cellules de la colonne "#" */
.aae-th:first-child, .aae-td:first-child {
    text-align: center;
}

/* Centrer les cellules de la colonne "Maternelle / Primaire" => 4 Correspond à la 4ème colonne */
.aae-th:nth-child(2), .aae-td:nth-child(2),
.aae-th:nth-child(3), .aae-td:nth-child(3),
.aae-th:nth-child(4), .aae-td:nth-child(4),
.aae-th:nth-child(5), .aae-td:nth-child(5) {
    text-align: center;
}


/* Alternance de couleurs sur les lignes */
.even {
    background-color: #e7f7e7;
}

.odd {
    background-color: white;
}

/* Bouton Logout */
.logout-container {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 14px;
}

/* Style du bouton Logout */
.logout-btn {
    text-decoration: none;
    color: #333;
    background-color: transparent;
    font-size: 16px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.logout-btn i {
    margin-right: 5px;
}

/* Effet au survol du bouton Logout */
.logout-btn:hover {
    background-color: #f4f4f4;
    border-color: #ccc;
}
/* =============================================================================================================================================================== */

/* ===============================================================================================================================================================
				CSS De la page Direction.html
   ===============================================================================================================================================================*/
/* Styles généraux pour la page */
.direction-body {
    font-family: Arial, sans-serif;
    height: 100vh;
    margin: 0;
    background-color: #f4f4f9;
}

.direction-header {
	background-color: #4CAF50;
	color: var(--text-light);
	padding: 15px 30px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.direction-header .direction-h1 {
	font-size: 1.4rem;
	margin: 0;
}

/* Conteneur principal pour centrer le tableau */
.direction-container {
    width: 90%;
    max-width: 1200px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Style du tableau */
.direction-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

/* Bordure des cellules et du tableau */
.direction-table, .direction-th, .direction-td {
    border: 1px solid #ddd;
}

/* Styles des cellules et titres */
.direction-th, .direction-td {
    padding: 10px;
    text-align: left;
}

/* Centrer les titres de colonnes */
.direction-th {
    text-align: center;
    background-color: #4CAF50;
    color: white;
}

/* Centrer les cellules de la colonne "#" */
.direction-th:first-child, .direction-td:first-child {
    text-align: center;
}

/* Centrer les cellules de la colonne "Salle" */
.direction-th:nth-child(2), .direction-td:nth-child(2) {
    text-align: center;
}

/* Centrer les cellules de la colonne "Nom" */
.direction-th:nth-child(3), .direction-td:nth-child(3) {
    text-align: left;
}
/* Centrer les cellules de la colonne "Type" */
.direction-th:nth-child(4), .direction-td:nth-child(4) {
    text-align: left;
}

/* Centrer les cellules de la colonne "Impressions Noir/Blanc" */
.direction-th:nth-child(5), .direction-td:nth-child(5) {
    text-align: center;
}

/* Centrer les cellules de la colonne  "Impressions Couleurs" */
.direction-th:nth-child(6), .direction-td:nth-child(6) {
    text-align: center;
}


/* Alternance de couleurs sur les lignes */
.even {
    background-color: #e7f7e7;
}

.odd {
    background-color: white;
}

/* Styles des zones de saisie */
input[type="text"] {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    text-align: center;
}

/* Bouton "VALIDER" */
button.valider {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: block;
    margin: 20px auto;
}

/* Effet au survol du bouton */
button.valider:hover {
    background-color: #45a049;
}

/* Conteneur pour le bouton Logout */
.logout-container {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 14px;
}

/* Style du bouton Logout */
.logout-btn {
    text-decoration: none;
    color: #333;
    background-color: transparent;
    font-size: 16px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.logout-btn i {
    margin-right: 5px;
}

/* Effet au survol du bouton Logout */
.logout-btn:hover {
    background-color: #f4f4f4;
    border-color: #ccc;
}

/* =============================================================================================================================================================== */

/* ===============================================================================================================================================================
				CSS Des pages Administrateur.html
   ===============================================================================================================================================================*/
:root {
	--primary: #0078d7;
	--secondary: #f4f6f8;
	--accent: #2eb85c;
	--danger: #e55353;
	--text-dark: #333;
	--text-light: #fff;
	--border: #ddd;
}

.admin-body {
	font-family: "Segoe UI", Roboto, sans-serif;
	margin: 0;
	background-color: var(--secondary);
	color: var(--text-dark);
}

.admin-header {
	background-color: var(--primary);
	color: var(--text-light);
	padding: 15px 30px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-header .admin-h1 {
	font-size: 1.4rem;
	margin: 0;
}

nav a {
	color: var(--text-light);
	margin-left: 20px;
	text-decoration: none;
	font-weight: 500;
}

nav a:hover {
	text-decoration: underline;
}

.admin-main {
	max-width: 1200px;
	margin: 30px auto;
	padding: 20px;
	background: white;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-section {
	margin-bottom: 40px;
}

.admin-h2 {
	border-bottom: 3px solid var(--primary);
	padding-bottom: 5px;
}

.admin-h3 {
    display: block;
    font-size: 1.17em;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

.admin-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 15px;
}

.admin-th, .admin-td {
	border: 1px solid var(--border);
	padding: 10px;
	text-align: left;
}

.admin-th {
	background-color: var(--primary);
	color: white;
}

tr:nth-child(even) {
	background-color: #f9f9f9;
}

button.administrateur-annuler, button.administrateur-ajouter, button.administrateur-supprimer, button.administrateur-modifier {
	padding: 8px 12px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-size: 0.9rem;
}

.boutons-actions {
	display: flex;
	gap: 8px;
}


.administrateur-ajouter { background-color: var(--accent); color: white; }
.administrateur-modifier { background-color: var(--primary); color: white; }
.administrateur-supprimer { background-color: var(--danger); color: white; }

/* ---- Modal ---- */
.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0; top: 0;
	width: 100%; height: 100%;
	background: rgba(0,0,0,0.4);
	justify-content: center;
	align-items: center;
}

.modal-content {
	background: white;
	padding: 20px;
	border-radius: 8px;
	width: 400px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.2);
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from { transform: scale(0.9); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

.modal-content h3 {
	margin-top: 0;
}

.modal-content label {
	display: block;
	margin-top: 10px;
	font-weight: bold;
}

.modal-content input, .modal-content select {
	width: 100%;
	padding: 8px;
	margin-top: 5px;
	border: 1px solid #ccc;
	border-radius: 5px;
}

.modal-actions {
	margin-top: 15px;
	text-align: right;
}

.modal-actions button {
	margin-left: 10px;
}

.admin-footer {
	text-align: center;
	color: #666;
	font-size: 0.9rem;
	margin: 30px 0;
}

@media (max-width: 768px) {
	.tables {
		display: flex;
		flex-direction: column;
	}
}

@media (min-width: 769px) {
	.tables {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 20px;
	}
}

/* =============================================================================================================================================================== */



/* ===============================================================================================================================================================
				CSS - POPUP changement de mot de passe
   ===============================================================================================================================================================*/

.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0; top: 0;
	width: 100%; height: 100%;
	background: rgba(0,0,0,0.4);
	justify-content: center;
	align-items: center;
}

.modal-content {
	background: white;
	padding: 25px;
	border-radius: 8px;
	width: 400px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.2);
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from { transform: scale(0.9); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

.modal-content h3 {
	margin-top: 0;
	color: #4CAF50;
	text-align: center;
}

.modal-content label {
	display: block;
	margin-top: 10px;
	font-weight: bold;
}

.modal-content input {
	width: 100%;
	padding: 8px;
	margin-top: 5px;
	border: 1px solid #ccc;
	border-radius: 5px;
	box-sizing: border-box;
}

.modal-actions {
	margin-top: 15px;
	text-align: right;
}

.modal-actions button {
	padding: 8px 16px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
}

.modal-actions button[type="button"] {
	background-color: #ccc;
	color: #333;
}

.modal-actions button[type="submit"] {
	background-color: #4CAF50;
	color: white;
}

.modal-actions button:hover {
	opacity: 0.9;
}

#pwdMessage {
	color: red;
	text-align: center;
	margin-top: 10px;
}


/* === Tri des colonnes dans les tableaux === */
th.sortable {
    cursor: pointer;
    position: relative;
}

th.sortable::after {
    content: " ▲▼";
    font-size: 0.8em;
    color: #aaa;
}

th.sortable.asc::after {
    content: " ▲";
    color: #4CAF50;
}

th.sortable.desc::after {
    content: " ▼";
    color: #4CAF50;
}
