/* Réinitialisation */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    background:#f5f7fb;
}

.login-container{
    display:flex;
    justify-content:center;
    align-items:center;
    height:100vh;
}

.login-card{
    width:400px;
    background:#fff;
    padding:35px;
    border-radius:12px;
    box-shadow:0 5px 20px rgba(0,0,0,.1);
}

.login-card h2{
    text-align:center;
    color:#0d6efd;
    margin-bottom:25px;
}

.form-group{
    margin-bottom:18px;
}

.form-group label{
    display:block;
    margin-bottom:8px;
    font-weight:bold;
}

.form-group input{
    width:100%;
    padding:12px;
    border:1px solid #ccc;
    border-radius:8px;
    font-size:15px;
}

.btn-login{
    width:100%;
    padding:12px;
    border:none;
    border-radius:8px;
    background:#0d6efd;
    color:#fff;
    cursor:pointer;
    font-size:16px;
    transition:.3s;
}

.btn-login:hover{
    background:#0b5ed7;
}

.message{
    text-align:center;
    color:red;
    margin-bottom:15px;
}
/* ===== MENU ===== */

.sidebar{
    position:fixed;
    left:0;
    top:0;
    width:250px;
    height:100%;
    background:#0d6efd;
    color:#fff;
    padding:20px;
}

.sidebar h2{
    text-align:center;
    margin-bottom:30px;
}

.sidebar ul{
    list-style:none;
}

.sidebar ul li{
    margin:15px 0;
}

.sidebar ul li a{
    color:white;
    text-decoration:none;
    display:block;
    padding:12px;
    border-radius:8px;
}

.sidebar ul li a:hover{
    background:white;
    color:#0d6efd;
}

/* ===== CONTENU ===== */

.main-content{
    margin-left:270px;
    padding:30px;
}

.cards{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin-top:30px;
}

.card{
    background:white;
    padding:25px;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
    text-align:center;
}

.card h3{
    color:#0d6efd;
}

.card p{
    font-size:35px;
    margin-top:10px;
    font-weight:bold;
}
/* ===== FOOTER ===== */

.footer{
    margin-left:270px;
    padding:20px;
    text-align:center;
    color:#666;
    background:#fff;
    margin-top:30px;
    border-top:1px solid #ddd;
}
/* ===== TABLEAU EMPLOYES ===== */

.btn-ajouter{
    display:inline-block;
    background:#0d6efd;
    color:white;
    padding:12px 20px;
    text-decoration:none;
    border-radius:8px;
    margin:20px 0;
}


.tableau{
    width:100%;
    background:white;
    border-collapse:collapse;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
}


.tableau th{
    background:#0d6efd;
    color:white;
    padding:12px;
}


.tableau td{
    padding:12px;
    border-bottom:1px solid #ddd;
    text-align:center;
}


.tableau img{
    border-radius:50%;
    object-fit:cover;
}

/* ===== AJOUTER EMPLOYES ===== */
.form-employe {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 700px;
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-employe .form-group {
  display: flex;
  flex-direction: column;
  flex: 1 1 200px;
}

.form-employe label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.form-employe input[type="text"],
.form-employe input[type="tel"],
.form-employe input[type="email"],
.form-employe input[type="password"],
.form-employe input[type="file"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.form-employe input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.2);
}

.btn-enregistrer {
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  flex: 1 1 100%;
  transition: background 0.2s;
}

.btn-enregistrer:hover {
  background-color: #1d4ed8;
}
html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* le conteneur principal (hors sidebar) doit pouvoir grandir */
.main-content {
  flex: 1;
}

footer {
  background: #f1f1f1;
  text-align: center;
  padding: 15px;
  margin-top: auto;
}

/* --- justifier_presence.php --- */

body {
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    color: #222;
}

h2 {
    color: #2f6fdb;
    margin-bottom: 10px;
}

form {
    background: #fff;
    max-width: 420px;
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-top: 10px;
}

form label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    color: #333;
}

form input[type="time"],
form input[type="text"],
form textarea {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 4px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

form small {
    display: block;
    color: #777;
    font-size: 12px;
    margin-bottom: 14px;
}

form button[type="submit"] {
    background: #2f6fdb;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}

form button[type="submit"]:hover {
    background: #2559b0;
}

form a {
    margin-left: 12px;
    color: #e74c3c;
    text-decoration: none;
}

form a:hover {
    text-decoration: underline;
}

/* Le rappel statut/observation en dehors du formulaire */
strong {
    color: #2f6fdb;
}

/* --- À fusionner dans css/admin.css : mise en forme de modifier_employe.php --- */

.main-content h1 {
    color: #2f6fdb;
    margin-bottom: 15px;
}

.main-content form {
    background: #fff;
    max-width: 420px;
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.main-content form label {
    display: block;
    font-weight: bold;
    margin-top: 14px;
    margin-bottom: 6px;
    color: #333;
}

.main-content form input[type="text"],
.main-content form input[type="email"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.main-content form input[type="file"] {
    margin-top: 4px;
}

.main-content form img {
    border: 3px solid #eee;
    display: block;
}

.main-content form small {
    color: #777;
    font-size: 12px;
}

.main-content form button[type="submit"] {
    margin-top: 20px;
    background: #2f6fdb;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}

.main-content form button[type="submit"]:hover {
    background: #2559b0;
}