* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

.dashboard {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
}

/* Header */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #162279;
  color: white;
  border-radius: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.header-left h1 {
  font-size: 2rem;
  margin: 0;
}

.header-left p {
  font-size: 1rem;
  margin: 5px 0 0 0;
  opacity: 0.9;
}

.header-right {
  text-align: right;
  font-size: 0.9rem;
  opacity: 0.9;
  font-variant-numeric: tabular-nums; /* Évite que les chiffres bougent */
}

/* Grille de recherche */
.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

/* Cartes */
.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 20px;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.card-header .material-icons {
  color: #162279;
  font-size: 24px;
}

.card-header h2 {
  font-size: 1.2rem;
  color: #333;
}

.card-body {
  padding: 10px 0;
}

/* Formulaires de recherche */
.card-body form {
  display: flex;
  gap: 10px;
}

.card-body input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.card-body input:focus {
  border-color: #162279;
}

.card-body button {
  padding: 10px 16px;
  background-color: #162279;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
}

.card-body button:hover {
  background-color: #3700b3;
}

/* Grille des liens utiles */
.links-grid .card-body {
  padding: 0;
}

.links-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  padding: 10px 0;
}

.links-container a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background-color: #f9f9f9;
  border-radius: 4px;
  color: #162279;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s, transform 0.1s;
}

.links-container a:hover {
  background-color: #ede7f6;
  transform: translateX(5px);
}

.links-container .material-icons {
  font-size: 18px;
  color: inherit;
}

/* Footer */
.dashboard-footer {
  text-align: center;
  padding: 20px;
  margin-top: 20px;
  color: #777;
  font-size: 0.9rem;
}

/* Variables couleurs */
:root {
  --primary: #162279;
  --primary-dark: #3700b3;
  --background: #f5f5f5;
  --surface: #ffffff;
}

/* Responsive mobile */
@media (max-width: 600px) {
  .dashboard-header {
    flex-direction: column;
    text-align: center;
  }
  .header-right {
    text-align: center;
    margin-top: 10px;
  }
  .links-container {
    grid-template-columns: 1fr;
  }
}
/* Transition douce pour la valeur des inputs */
input[type="text"] {
  transition: all 0.3s ease;
}