/* Styles généraux */
body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #f5f7fb 0%, #e9ecef 100%);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

h1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
  font-size: 2rem;
}

h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: #2d3748;
  margin: 32px 0 24px;
  font-size: 1.5rem;
}

/* Styles généraux pour le menu */
nav {
  background-color: #392259; /* Couleur de fond du menu */
  padding: 10px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Ombre légère pour le contraste */
}

.menu {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.menu li {
  position: relative;
  margin-right: 20px;
}

.menu li a {
  text-decoration: none;
  color: white;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  padding: 10px 15px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.menu li a:hover {
  background-color: #7141d9; /* Couleur au survol */
  border-radius: 5px; /* Arrondi les liens au survol */
}

.user-menu {
  margin-left: auto; /* Pousse le user-menu vers l'extrémité droite */
  position: relative;
}

.user-menu a {
  display: flex;
  align-items: center;
}

.user-menu a i {
  margin-right: 8px;
}

/* Sous-menu */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  list-style-type: none;
  padding: 10px 0;
}

.submenu li {
  margin: 0;
}

.submenu li a {
  padding: 10px 20px;
  color: #392259; /* Couleur des liens du sous-menu */
  font-weight: 500;
  display: block;
  white-space: nowrap;
}

.submenu li a:hover {
  background-color: #f5f5f5;
}

/* Afficher le sous-menu au survol */
.user-menu:hover .submenu {
  display: block;
}

/* Container pour créer une entreprise */
.create-business-container {
  margin: 24px 0 32px;
  display: flex;
  justify-content: center;
}

.create-business-btn {
  background: linear-gradient(135deg, #5b6fff 0%, #3942c1 100%);
  color: white;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(91, 111, 255, 0.3);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.create-business-btn::before {
  content: "➕";
  font-size: 1.2rem;
}

.create-business-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91, 111, 255, 0.4);
  background: linear-gradient(135deg, #6b7fff 0%, #4952d1 100%);
}

/* Styles pour les cartes de dossiers */
.dossiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.dossier-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.dossier-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #5b6fff 0%, #d941b0 100%);
}

.dossier-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #cbd5e0;
}

.dossier-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.dossier-card-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #1a1a2e;
  margin: 0 0 4px 0;
}

.dossier-card-type {
  display: inline-block;
  padding: 4px 12px;
  background: #edf2f7;
  color: #4a5568;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 8px;
}

.dossier-card-progress {
  margin: 20px 0;
}

.dossier-card-progress-label {
  font-size: 0.875rem;
  color: #718096;
  margin-bottom: 12px;
  font-weight: 500;
}

.dossier-card-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.dossier-card-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  background: white;
  border-radius: 16px;
  border: 2px dashed #cbd5e0;
  color: #718096;
}

.dossier-card-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.dossier-card-empty-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: #4a5568;
  margin-bottom: 8px;
}

.dossier-card-empty-text {
  font-size: 0.9375rem;
  color: #718096;
}

/* Styles pour le progress tracker compact dans les cartes */
.dossier-card .progress-tracker {
  width: 100%;
}

.dossier-card .progress-tracker--compact {
  min-width: 100%;
  max-width: 100%;
}

.dossier-card .progress-step {
  min-width: 0;
  overflow: hidden;
}

.dossier-card .step-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Boutons dans les cartes */
.btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}

.btn-completer {
  background: linear-gradient(135deg, #5b6fff 0%, #3942c1 100%);
  color: white;
  box-shadow: 0 2px 6px rgba(91, 111, 255, 0.25);
}

.btn-completer:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(91, 111, 255, 0.35);
  background: linear-gradient(135deg, #6b7fff 0%, #4952d1 100%);
}

.btn-supprimer {
  background: #f7fafc;
  color: #718096;
  border: 1px solid #e2e8f0;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-supprimer:hover:not(:disabled) {
  background: #fed7d7;
  color: #c53030;
  border-color: #fc8181;
}

.btn-supprimer:disabled {
  cursor: not-allowed;
}

/* Styles responsives */
@media (max-width: 768px) {
  .dossiers-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dossier-card {
    padding: 20px;
  }

  .dossier-card-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .create-business-btn {
    width: 100%;
    justify-content: center;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.25rem;
    margin: 24px 0 16px;
  }
}

@media (max-width: 480px) {
  .dossier-card-header {
    flex-direction: column;
    gap: 12px;
  }

  .dossier-card-title {
    font-size: 1.125rem;
  }
}
