/* === RESET & BASE GENERALE === */
body {
  font-family: sans-serif;
  background-color: #f4f4f4;
  color: #333;
  padding: 20px;
  margin: 0;
}

h1,
h2 {
  color: #0088ce;
}

/* === TYPOGRAPHIE === */
/* (tu peux y ajouter des styles de texte plus tard) */

/* === EN-TÊTE & TITRES === */
header {
  margin-bottom: 30px;
}

header h1 {
  font-size: 2em;
}

/* === NAVIGATION === */
nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

nav a {
  text-decoration: none;
  color: #002a5c;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}
/* === RAPPEL === */
.reminder-alert {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  padding: 12px;
  margin: 15px;
  border-radius: 8px;
  font-weight: bold;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideIn 0.4s ease-out;
}

.reminder-alert button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #856404;
}

@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* === SECTIONS === */
section {
  background: white;
  padding: 15px;
  margin-top: 20px;
  border-radius: 10px;
}

/* === MODULE TÂCHES === */
#task-form {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

#task-input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

#task-form button {
  padding: 8px 12px;
  background-color: #0088ce;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#task-form button:hover {
  background-color: #006fa7;
}

#task-list {
  list-style: none;
  padding: 0;
}

#clear-tasks {
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #ff5c5c;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#clear-tasks:hover {
  background-color: #cc0000;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.task-item input[type="checkbox"] {
  transform: scale(1.2);
}

.task-item span.done {
  text-decoration: line-through;
  color: #888;
}

.task-item button {
  margin-left: auto;
  background: none;
  border: none;
  color: red;
  cursor: pointer;
  font-size: 16px;
}

/* === MODULE SUIVI === */

form#formSuiviJournee {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f4f4f4; /* fond clair */
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

form#formSuiviJournee h2 {
  text-align: center;
}

form#formSuiviJournee label {
  font-weight: bold;
  display: block;
  margin-top: 12px;
}

form#formSuiviJournee input[type="text"],
form#formSuiviJournee input[type="time"],
form#formSuiviJournee input[type="number"],
form#formSuiviJournee input[type="date"],
form#formSuiviJournee select,
form#formSuiviJournee textarea {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 14px;
}

form#formSuiviJournee textarea {
  resize: vertical;
}

form#formSuiviJournee button[type="submit"] {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  background-color: #0088ce; /* ton bleu préféré */
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

form#formSuiviJournee button[type="submit"]:hover {
  background-color: #0074b3;
}

#soiree_fields {
  transition: all 0.3s ease;
  margin-top: 10px;
  padding: 10px;
  border-left: 4px solid #0088ce;
  background-color: #eef7fc;
  border-radius: 6px;
}

/* === MODULE SUIVI === */

.suivi-resume {
  border: 2px solid #ccc;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 15px;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
}
.suivi-resume ul {
  list-style: none;
  padding-left: 0;
}
.suivi-resume.bien {
  background-color: #e0f8e0;
  border-color: #2ecc71;
}
.suivi-resume.moyen {
  background-color: #fff5cc;
  border-color: #f1c40f;
}
.suivi-resume.mal {
  background-color: #f8d7da;
  border-color: #e74c3c;
}

.flash-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 10px;
  border-radius: 6px;
  margin: 10px auto;
  width: fit-content;
  animation: fadeOut 3s ease-in-out forwards;
}
@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

table.historique {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}
table.historique th,
table.historique td {
  border: 1px solid #ccc;
  padding: 6px 10px;
  text-align: left;
}
table.historique thead {
  background-color: #f0f0f0;
}
table.historique td:nth-child(2) {
  text-transform: capitalize;
}
table.historique .btn-sm {
  background: #0088ce;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9em;
}
.vide {
  font-style: italic;
  color: #888;
}

.journal-liste {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
}

.journal-item {
  border: 1px solid #ddd;
  padding: 12px;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.journal-item h4 {
  margin: 0 0 5px 0;
  color: #002a5c;
}

.journal-item p {
  margin-bottom: 8px;
  white-space: pre-line;
}

/* === SIDEBAR === */
body {
  display: flex;
  margin: 0;
  min-height: 100vh;
}

.sidebar {
  width: 220px;
  background-color: #002a5c;
  color: white;
  display: flex;
  flex-direction: column;
  padding-top: 20px;
}

.sidebar button {
  background: none;
  border: none;
  color: white;
  padding: 15px 20px;
  text-align: left;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.sidebar button:hover,
.sidebar button.active {
  background-color: #004080;
}

/* === CONTENU PRINCIPAL === */
.content {
  flex: 1;
  padding: 20px;
  background-color: #f4f4f4;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === FOOTER === */
/* (si tu en ajoutes un plus tard) */
