/* ====================
   🌐 STYLES GÉNÉRAUX
==================== */
body {
  font-family: Arial, sans-serif;
  margin: 20px;
  background-color: #fdfdfd;
  color: #333;
}

h1, h2, h3 {
  color: #333;
  text-align: center;
  margin-bottom: 20px;
}

/* ====================
   🧭 BARRE DE NAVIGATION
==================== */
.menu-global {
  background: #f2f2f2;
  padding: 10px 20px;
  border-bottom: 1px solid #ccc;
  position: sticky;
  top: 0;
  z-index: 999;
}

.menu-global ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 0;
  padding: 0;
}

.menu-global li {
  display: inline;
}

.menu-global a {
  display: inline-block;
  padding: 8px 15px;
  text-decoration: none;
  color: #333;
  background-color: #e6e6e6;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.menu-global a:hover {
  background-color: #007acc;
  color: white;
}

/* ====================
   🧾 TABLES
==================== */
.table-liste {
  border-collapse: collapse;
  width: 100%;
  background: white;
  margin-bottom: 20px;
}

.table-liste th, .table-liste td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}

.table-liste th {
  background-color: #eee;
}

/* ====================
   📝 FORMULAIRES
==================== */
input[type="text"],
input[type="date"],
input[type="email"],
input[type="password"],
select,
textarea {
  padding: 6px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  max-width: 300px;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
}

button, .button, a.button {
  background-color: #4CAF50;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
  font-weight: bold;
}

button:hover, .button:hover, a.button:hover {
  background-color: #388E3C;
}

/* ====================
   🧬 FORMULAIRE INDIVIDU — 2 COLONNES
==================== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  margin-bottom: 6px;
}

.form-grid fieldset {
  grid-column: span 2;
  border: 1px solid #ccc;
  padding: 12px;
  border-radius: 8px;
}

/* ====================
   🔍 FILTRES DYNAMIQUES
==================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  background: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0 auto 20px;
  max-width: 95%;
}

.filters label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.filters h3 {
  width: 100%;
  font-size: 1rem;
  margin: 0 0 10px;
}

.filters button {
  background-color: #f0f0f0;
  border: 1px solid #aaa;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.filters button:hover {
  background-color: #e0e0e0;
}

/* ====================
   🧾 DASHBOARD / CARDS
==================== */
.dashboard-container {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  text-align: center;
}

.dashboard-table td {
  border: 1px solid #ccc;
  padding: 14px;
  background-color: #f9f9f9;
}

.dashboard-table a {
  display: inline-block;
  padding: 10px 14px;
  font-weight: bold;
  text-decoration: none;
  background-color: #eaeaea;
  border-radius: 6px;
}

.dashboard-table a:hover {
  background-color: #d0d0d0;
}

/* ====================
   📊 GRAPH SVG
==================== */
svg {
  border: 1px solid #aaa;
  background: #ffffff;
  display: block;
  margin: 0 auto 20px auto;
}

circle {
  cursor: grab;
  stroke: black;
}

text {
  font: 12px sans-serif;
  pointer-events: none;
}

/* ====================
   🖨️ IMPRESSION
==================== */
@media print {
  nav, .menu-global, .button, button, .actions-bar {
    display: none !important;
  }

  body {
    font-size: 12pt;
    background: white;
    color: black;
  }

  img {
    max-height: 100px;
  }

  a {
    text-decoration: none;
    color: black;
  }

  h2, h3 {
    color: black;
  }
}
