/* ======== STYLE GLOBAL ======== */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f6fa;
  margin: 0;
  padding: 0;
}

header {
  background-color: #003366;
  color: white;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header img {
  height: 40px;
  margin-right: 10px;
}

.container {
  padding: 20px 40px;
}

h2 {
  color: #003366;
  border-bottom: 2px solid #003366;
  padding-bottom: 5px;
}

button,
input[type="submit"],
input[type="button"] {
  background-color: #0066cc;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 8px 14px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover,
input[type="submit"]:hover {
  background-color: #004d99;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

th,
td {
  padding: 10px 12px;
  text-align: left;
}

th {
  background-color: #e6f0ff;
  color: #003366;
}

tr:nth-child(even) {
  background-color: #f8f9fc;
}

form {
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-top: 20px;
}

label {
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 8px;
  margin: 6px 0 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* ======== HEADER PRO (ADMIN + EMPLOYÉ) ======== */
.admin-header,
.employe-header {
  background: linear-gradient(135deg, #003366, #0059b3);
  color: white;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-left,
.employe-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-left img,
.employe-left img {
  height: 45px;
  width: auto;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}

.admin-left h1,
.employe-left h1 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

/* ======== MENU NAV (ADMIN & EMPLOYÉ) ======== */
.admin-nav a,
.employe-nav a {
  color: white;
  text-decoration: none !important; /* ✅ supprime les soulignements natifs */
  margin-left: 25px;
  font-size: 15px;
  font-weight: 500;
  transition: 0.3s;
  position: relative;
}

/* Barre blanche animée au survol */
.admin-nav a::after,
.employe-nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -3px;
  left: 0;
  background-color: white;
  transition: width 0.3s ease;
}

.admin-nav a:hover::after,
.employe-nav a:hover::after {
  width: 100%;
}

.admin-nav a:hover,
.employe-nav a:hover {
  opacity: 0.9;
}

/* ✅ Page active : le lien reste souligné */
.admin-nav a.active::after,
.employe-nav a.active::after {
  width: 100%;
}

/* ======== AUTRES ELEMENTS ======== */
.success {
  background-color: #d4edda;
  color: #155724;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  margin-bottom: 15px;
  border: 1px solid #c3e6cb;
}

.error {
  background-color: #ffe6e6;
  color: #cc0000;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 14px;
}
