html, body {
    background: url("../images/Fond.jpg") no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    color: black;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Lexend-VariableFont_wght';
}

/* Prevent fixed footer from overlapping page content */
main {
    padding-bottom: 90px; /* slightly larger than footer height to avoid overlap */
    box-sizing: border-box;
}

.Titre{
    display: flex;
    justify-content: center;
}

.DivLogin {
    display: flex;
    justify-content: flex-end; /* Aligne le bouton à droite */
    padding: 10px; /* Ajoute un peu d'espace autour */
}

.BouttonLogin {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto; /* Ajuste automatiquement la largeur */
    height: auto; /* Ajuste automatiquement la hauteur */
    color: lightgray;
    background-color: brown; /* Couleur de fond derrière le bouton */
    padding: 5px 10px; /* Ajoute de l'espace interne au bouton */
    border-radius: 5px; /* Ajoute des coins arrondis */
    text-decoration: none; /* Supprime le soulignement du lien */
}

.DivAcceuil {
    display: flex;
    justify-content: flex-start; /* Aligne le bouton à droite */
    padding: 10px; /* Ajoute un peu d'espace autour */
}

.BouttonAcceuil {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto; /* Ajuste automatiquement la largeur */
    height: auto; /* Ajuste automatiquement la hauteur */
    color: lightgray;
    background-color: brown; /* Couleur de fond derrière le bouton */
    padding: 5px 10px; /* Ajoute de l'espace interne au bouton */
    border-radius: 5px; /* Ajoute des coins arrondis */
    text-decoration: none; /* Supprime le soulignement du lien */
}

.DivConnexion {
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
    height: 40vh; /* Prend 80% de la hauteur de la fenêtre */
}

.DivConnexion form {
    display: flex;
    flex-direction: column; /* Aligne les éléments verticalement */
    background-color: #f5f5f5; /* Couleur de fond du formulaire */
    padding: 20px; /* Ajoute de l'espace interne */
    border-radius: 10px; /* Coins arrondis */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Ombre pour un effet de profondeur */
    width: 400px; /* Largeur fixe */
}

.DivConnexion label {
    margin-bottom: 5px; /* Espacement entre le label et l'input */
    font-weight: bold; /* Met le texte en gras */
    color: #333; /* Couleur du texte */
}

.DivConnexion input[type="email"],
.DivConnexion input[type="password"] {
    padding: 10px; /* Ajoute de l'espace interne */
    margin-bottom: 15px; /* Espacement entre les champs */
    border: 1px solid #ccc; /* Bordure grise */
    border-radius: 5px; /* Coins arrondis */
    font-size: 14px; /* Taille de police */
}

.DivConnexion input[type="submit"] {
    padding: 10px;
    background-color: #4CAF50; /* Couleur verte */
    color: white; /* Texte blanc */
    border: none; /* Supprime la bordure */
    border-radius: 5px; /* Coins arrondis */
    cursor: pointer; /* Change le curseur au survol */
    font-size: 16px; /* Taille de police */
    transition: background-color 0.3s ease; /* Animation au survol */
}

.DivConnexion input[type="submit"]:hover {
    background-color: #45a049; /* Couleur légèrement plus foncée au survol */
}

.DivConnexion p {
    text-align: center;
    padding: 10px;
    background-color: #4CAF50; /* Couleur verte */
    color: white; /* Texte blanc */
    border: none; /* Supprime la bordure */
    border-radius: 5px; /* Coins arrondis */
    cursor: pointer; /* Change le curseur au survol */
    font-size: 16px; /* Taille de police */
    transition: background-color 0.3s ease;

}

.DivConnexion p:hover {
    background-color: #45a049; /* Couleur légèrement plus foncée au survol */
}

.DivConnexion a {
    text-decoration: none;
}

.DivProfil {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.DivProfil div {
    margin-bottom: 15px;
}

.DivProfil label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.DivProfil input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.DivProfil button {
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #0078d7;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.DivProfil button:hover {
    background-color: #005a9e;
}

/* Style pour le bouton de déconnexion */
#deconnexion {
    background-color: #dc3545; /* Rouge */
    color: #fff; /* Texte blanc */
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    /* Fixe le bouton au-dessus du footer pour qu'il reste visible */
    position: fixed;
    right: 20px;
    bottom: 90px; /* un peu au-dessus du footer (footer ~ 60-75px) */
    z-index: 1101; /* supérieur au footer (1000) */
}

#deconnexion:hover {
    background-color: #c82333; /* Rouge plus foncé au survol */
    transform: scale(1.05); /* Légère mise en avant au survol */
}

#deconnexion:active {
    background-color: #bd2130; /* Rouge encore plus foncé lors du clic */
    transform: scale(0.95); /* Légère réduction lors du clic */
}

.BouttonAcceuilProfil {
    display: inline-block;
    background-color: brown; /* Bleu */
    color: #fff; /* Texte blanc */
    text-align: center;
    padding: 5px 15px; /* Réduit la taille du bouton */
    font-size: 14px; /* Réduit la taille du texte */
    font-weight: bold;
    border-radius: 4px; /* Coins légèrement arrondis */
    text-decoration: none;
    margin: 5px auto; /* Réduit l'espacement vertical */
    position: relative;
    top: -10px; /* Remonte légèrement le bouton */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.BouttonAcceuilProfil:hover {
    background-color: #0056b3; /* Bleu plus foncé au survol */
    transform: scale(1.05); /* Légère mise en avant au survol */
}

.BouttonAcceuilProfil:active {
    background-color: #004085; /* Bleu encore plus foncé lors du clic */
    transform: scale(0.95); /* Légère réduction lors du clic */
}

.TitreSection {
    font-size: 20px; /* Taille du texte */
    font-weight: bold; /* Texte en gras */
    margin-bottom: 10px; /* Réduit l'espacement en dessous du titre */
    text-align: center; /* Centre le texte */
}

#toggleThemeBtn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #007BFF; /* Bleu */
    color: #fff; /* Texte blanc */
    border: none;
    padding: 10px 15px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50%; /* Bouton rond */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#toggleThemeBtn:hover {
    background-color: #0056b3; /* Bleu plus foncé au survol */
    transform: scale(1.1); /* Légère mise en avant au survol */
}

#toggleThemeBtn:active {
    background-color: #004085; /* Bleu encore plus foncé lors du clic */
    transform: scale(0.95); /* Légère réduction lors du clic */
}

.DivAjoutTache {
    text-align: left;
    margin: 20px 0;
}

.BouttonAjoutTache {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0078d7;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.BouttonAjoutTache:hover {
    background-color: #005a9e;
}

.EmploiDuTemps {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 14px;
}

.EmploiDuTemps thead th {
    background-color: #0078d7;
    color: white;
    padding: 10px;
    border: 1px solid #ccc;
}

.EmploiDuTemps tbody td {
    padding: 10px;
    border: 1px solid #ccc;
    height: 40px;
}

.EmploiDuTemps tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.EmploiDuTemps tbody tr:nth-child(odd) {
    background-color: #ffffff;
}
.DivRemiseAZero {
    text-align: left;
    margin: 20px 0;
}

.BouttonRemiseAZero {
    display: inline-block;
    padding: 10px 20px;
    background-color: #dc3545; /* Rouge */
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.BouttonRemiseAZero:hover {
    background-color: #c82333; /* Rouge plus foncé */
}

/* Pied de page */
.Footer {
    background-color: brown; /* Couleur de fond */
    color: white; /* Couleur du texte */
    padding: 15px 0; /* Espacement en haut et en bas */
    position: fixed; /* Fixe le pied de page en bas de la fenêtre */
    bottom: 0;
    left: 0;
    width: 100%; /* Prend toute la largeur de la page */
    z-index: 1000; /* Assure que le pied de page reste au-dessus des autres éléments */
    text-align: center; /* Centre le contenu horizontalement */
}

.FooterButtons {
    display: flex;
    justify-content: center; /* Centre les boutons horizontalement */
    gap: 20px; /* Espacement entre les boutons */
}

.FooterButton {
    display: inline-block;
    padding: 10px 20px; /* Espacement interne des boutons */
    background-color: #0078d7; /* Couleur de fond des boutons */
    color: white; /* Couleur du texte */
    text-decoration: none; /* Supprime le soulignement des liens */
    font-size: 14px; /* Taille du texte */
    font-weight: bold;
    border-radius: 5px; /* Coins arrondis */
    transition: background-color 0.3s ease; /* Animation pour le survol */
}

.FooterButton:hover {
    background-color: #005a9e; /* Couleur plus foncée au survol */
}

.BouttonMdpOublie {
    display: block;
    margin-top: 10px;
    color: #0078d7;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.BouttonMdpOublie:hover {
    color: #005a9e;
    text-decoration: underline;
}

.FormNouveauMDP {
    max-width: 400px;
    margin: 30px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.FormNouveauMDP label {
    font-weight: bold;
    text-align: left;
}
.FormNouveauMDP input[type="password"],
.FormNouveauMDP input[type="submit"] {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}
.FormNouveauMDP input[type="submit"] {
    background: #0078d7;
    color: #fff;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}
.FormNouveauMDP input[type="submit"]:hover {
    background: #005a9e;
}

.notfound-container {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.notfound-title {
    font-size: 4em;
    color: #dc3545;
    margin-bottom: 10px;
}
.notfound-message {
    font-size: 1.5em;
    margin-bottom: 30px;
}
.notfound-link {
    display: inline-block;
    padding: 10px 20px;
    background: #0078d7;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}
.notfound-link:hover {
    background: #005a9e;
}

/* Champs du formulaire de changement de mot de passe */
#changePwdForm {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 20px 18px;
    max-width: 350px;
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#changePwdForm label {
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
    text-align: left;
}

#changePwdForm input[type="password"] {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 15px;
    margin-bottom: 8px;
    width: 100%;
    box-sizing: border-box;
}

#changePwdForm input[type="submit"] {
    background-color: #0078d7;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

#changePwdForm input[type="submit"]:hover {
    background-color: #005a9e;
}

.DivAjoutTacheForm {
    max-width: 450px;
    margin: 40px auto 0 auto;
    padding: 30px 28px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    text-align: center;
}

.DivAjoutTacheForm h2 {
    color: #0078d7;
    margin-bottom: 22px;
    font-size: 24px;
}

.FormAjoutTache {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.FormAjoutTache label {
    font-weight: bold;
    color: #333;
    text-align: left;
    margin-bottom: 3px;
}

.FormAjoutTache input[type="text"],
.FormAjoutTache textarea,
.FormAjoutTache select {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 15px;
    margin-bottom: 5px;
    width: 100%;
    box-sizing: border-box;
    background: #f8f8f8;
}

.FormAjoutTache textarea {
    resize: vertical;
}

.FormAjoutTache input[type="submit"] {
    background-color: #0078d7;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 12px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}

.FormAjoutTache input[type="submit"]:hover {
    background-color: #005a9e;
}

.BouttonAcceuil {
    display: inline-block;
    margin-top: 18px;
    background-color: brown;
    color: #fff;
    padding: 8px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.BouttonAcceuil:hover {
    background-color: #a0522d;
}

.TaskCell {
    color: #fff;
    border-radius: 3px;
    padding: 2px 2px;
    font-weight: bold;
    text-align: center;
    margin: 1px 0;
}
.TaskDesc {
    font-size: 0.9em;
    font-weight: normal;
    display: block;
    margin-top: 2px;
}

.DivDetailsTask {
    max-width: 400px;
    margin: 40px auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    padding: 30px 24px;
    text-align: center;
}
.BtnSupprimerTache {
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 18px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background 0.3s;
}
.BtnSupprimerTache:hover {
    background: #a71d2a;
}
.FormCouleurTache {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}
.FormCouleurTache input[type="color"] {
    width: 50px;
    height: 30px;
    border: none;
    background: none;
    cursor: pointer;
}
.FormCouleurTache input[type="submit"] {
    background: #0078d7;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 8px 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}
.FormCouleurTache input[type="submit"]:hover {
    background: #005a9e;
}

/* Conteneur des boutons sous l'EDT */
#edt-btn-container {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 32px auto 70px auto;
    flex-wrap: wrap;
}

/* Style général pour les deux boutons */
#edt-btn-container button {
    padding: 12px 32px;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,224,255,0.10), 0 2px 8px rgba(255,0,234,0.08);
    transition: background 0.3s, transform 0.2s;
    letter-spacing: 0.5px;
    margin: 0;
    margin-bottom: 20px;
}

/* Bouton Télécharger l'EDT en PDF */
#btnEDTPDF {
    background: linear-gradient(90deg, #00e0ff 0%, #ff00ea 100%);
}
#btnEDTPDF:hover {
    background: linear-gradient(90deg, #00bfff 0%, #c800ff 100%);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 24px rgba(0,224,255,0.18), 0 4px 16px rgba(255,0,234,0.14);
}

/* Bouton Imprimer l'EDT */
#btnPrintPDF {
    background: linear-gradient(90deg, #ff00ea 0%, #00e0ff 100%);
}
#btnPrintPDF:hover {
    background: linear-gradient(90deg, #c800ff 0%, #00bfff 100%);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 24px rgba(255,0,234,0.18), 0 4px 16px rgba(0,224,255,0.14);
}

/* Container du formulaire de contact */
.DivContact {
    max-width: 500px;
    margin: 40px auto 100px auto;
    padding: 28px 32px;
    background: #f7fafd;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.09);
}

/* Style du formulaire */
.DivContact form {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Labels */
.DivContact label {
    font-weight: 500;
    margin-bottom: 3px;
    color: #222;
}

/* Champs de saisie */
.DivContact input[type="email"],
.DivContact input[type="text"],
.DivContact textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #b5c1d8;
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
    transition: border 0.2s;
    box-sizing: border-box;
}

.DivContact input[type="email"]:focus,
.DivContact input[type="text"]:focus,
.DivContact textarea:focus {
    border-color: #0078d7;
    outline: none;
}

/* Zone de texte */
.DivContact textarea {
    resize: vertical;
    min-height: 90px;
    font-family: inherit;
}

/* Bouton envoyer */
.DivContact button[type="submit"] {
    background: #0078d7;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 0;
    font-size: 1.08rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
}

.DivContact button[type="submit"]:hover {
    background: #005fa3;
}

.activation-a2f-body {
    background: #f6f8fa;
    color: #222;
    font-family: 'Segoe UI', Arial, sans-serif;
    min-height: 100vh;
    margin: 0;
}

.activation-a2f-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    max-width: 400px;
    margin: 60px auto;
    padding: 32px 28px;
    text-align: center;
}

.activation-a2f-title {
    font-size: 1.7em;
    margin-bottom: 24px;
    color: #1a237e;
}

.activation-a2f-label {
    font-size: 1.1em;
    color: #333;
}

.activation-a2f-input {
    margin-top: 10px;
    padding: 10px 12px;
    font-size: 1.1em;
    border: 1px solid #bdbdbd;
    border-radius: 6px;
    background: #fafbfc;
    color: #222;
    outline: none;
    transition: border 0.2s;
}

.activation-a2f-input:focus {
    border: 1.5px solid #1976d2;
}

.activation-a2f-button {
    margin-top: 18px;
    padding: 10px 28px;
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.2s;
}

.activation-a2f-button:hover {
    background: #1565c0;
}

.activation-a2f-help {
    margin-top: 22px;
    color: #616161;
    font-size: 0.98em;
}
.activation-a2f-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #1976d2;
    color: #fff;
    border-radius: 6px;
    font-size: 1.1em;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
    margin: 18px 0;
    cursor: pointer;
}
.activation-a2f-btn:hover {
    background: #1565c0;
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.15);
}

/* Styles pour la page des emplois du temps partagés (SharedEDT) */
.sharededt-body {
    background: #f7fafd;
    color: #2c2f33;
    min-height: 100vh;
}
.sharededt-title {
    color: #0078d7;
    margin-bottom: 24px;
}
.sharededt-list {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 24px 28px;
    max-width: 600px;
    margin: 0 auto 30px auto;
}
.sharededt-item {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1.08em;
}
.sharededt-item:last-child {
    border-bottom: none;
}
.sharededt-view {
    color: #0078d7;
    text-decoration: underline;
    font-weight: bold;
    margin-left: 8px;
}
.sharededt-view:hover {
    color: #005a9e;
}
.sharededt-back {
    display: inline-block;
    margin: 18px auto 0 auto;
    background: #0078d7;
    color: #fff;
    padding: 8px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}
.sharededt-back:hover {
    background: #005a9e;
    color: #fff;
}

/* Connexion A2F (thème clair) */
.a2f-container {
  max-width: 420px;
  margin: 60px auto 120px auto; /* laisse de l'espace au footer fixe */
  padding: 28px 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  text-align: center;
}
.a2f-container h2 {
  margin: 0 0 18px 0;
  color: #0078d7;
  font-size: 1.6em;
}
.a2f-container form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.a2f-container label { font-weight: 600; color: #333; }
#a2f_code {
  padding: 10px 12px;
  font-size: 1.2em;
  letter-spacing: 6px;
  text-align: center;
  border: 1px solid #bdbdbd;
  border-radius: 8px;
  background: #fafbfc;
  color: #222;
  outline: none;
  transition: border 0.2s;
}
#a2f_code:focus { border-color: #0078d7; }
.a2f-container button[type="submit"] {
  padding: 10px 16px;
  border-radius: 8px;
  background: #0078d7;
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.a2f-container button[type="submit"]:hover { background: #005a9e; }
.a2f-container button[type="submit"]:active { transform: scale(0.98); }
.a2f-error {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fdecea;
  border: 1px solid #f5c2c7;
  color: #842029;
  font-weight: 500;
}
@media (max-width: 480px) {
  .a2f-container { margin: 32px 12px 110px 12px; padding: 22px 18px; }
  #a2f_code { font-size: 1.1em; letter-spacing: 4px; }
}