/* custom.css */

/* Police générale */
body {
  font-family: "Roboto", sans-serif;
  background-color: #f8f9fa; /* Couleur de fond gris clair */
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Évite les débordements horizontaux */
}

/* Conteneurs */
.container {
  max-width: 100%;
  padding: 15px; /* Ajout d'espacement interne */
}

/* Grille */
.row {
  margin-left: 0;
  margin-right: 0;
}

/* Cartes */
.card {
  flex: 1 1 auto;
  border: none;
  border-radius: 8px; /* Coins arrondis */
  transition: transform 0.2s, box-shadow 0.2s; /* Animation fluide */
}

.card:hover {
  transform: scale(1.02); /* Zoom léger sur survol */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Ombre douce */
}

.card-title {
  font-size: 1rem;
  font-weight: 500;
}

.card-text {
  font-size: 0.9rem;
  color: #6c757d; /* Couleur grise pour le texte secondaire */
}

/* Barre de recherche */
.input-group {
  max-width: 1000px;
  margin: 0 auto;
}

.input-group .form-control {
  border-radius: 30px 0 0 30px;
}

.input-group .btn {
  border-radius: 0 30px 30px 0;
  padding: 10px 20px;
  font-size: 0.9rem;
}


/* Bouton de recherche */
.input-group .btn {
  border-radius: 30px;
  font-size: 0.9rem;
}

/* Accordéon */
.accordion-button {
  font-weight: 500;
  font-size: 1.1rem;
  border-radius: 0; /* Retirer les coins arrondis pour un design plat */
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-item {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.accordion-button:not(.collapsed) {
  color: #fff;
  background-color: #0d6efd; /* Couleur bleue Bootstrap */
}

.accordion-body {
  padding: 15px;
  background-color: #f8f9fa; /* Gris clair */
  border-top: 1px solid #dee2e6;
}

/* Sidebar */
.sidebar {
  background-color: #343a40; /* Couleur sombre */
  color: #fff;
}

.sidebar .sidebar-brand {
  font-size: 1.5rem;
  font-weight: 600;
  padding: 20px 15px;
  text-align: center;
}

.sidebar .nav-link {
  color: #adb5bd; /* Gris clair Bootstrap */
  padding: 10px 15px;
  font-size: 0.95rem;
  border-radius: 4px;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
  color: #fff;
  background-color: #495057; /* Couleur grise foncée */
}

/* Responsivité */
@media (max-width: 992px) {
  .sidebar {
      transform: translateX(-100%);
      transition: transform 0.3s ease-in-out;
  }

  .sidebar.toggled {
      transform: translateX(0);
  }

  .dashboard-content {
      margin-left: 0;
  }
}

@media (max-width: 576px) {
  .accordion-button {
      font-size: 1rem;
  }

  .card-title {
      font-size: 0.9rem;
  }

  .card-text {
      font-size: 0.8rem;
  }

  #searchInput {
      font-size: 0.85rem;
  }
}
