body {
  margin: 0;
  font-family: 'Karla', sans-serif;
  background: #faf9ff;
  color: #333;
}

/* Fond dégradé pour les pages de connexion et inscription */
body.auth-page {
  background: linear-gradient(135deg, #faf9ff 0%, #f0f0ff 25%, #e8e6ff 50%, #f5f3ff 75%, #faf9ff 100%);
  min-height: 100vh;
}

* {
  font-family: 'Karla', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  color: #000;
}

.app {
  display: flex;
  min-height: 100vh;
}

.content {
  margin-left: 220px;
  flex: 1;
  width: calc(100% - 220px);
  padding: 40px;
}

.sidebar {
  background: white;
  width: 200px;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  color: #333;
  border-right: 1px solid #eee;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  overflow-y: auto;
}

.nav-menu {
  flex: 1;
  margin-top: 32px;
}

.user-menu {
  border-top: 1px solid #eee;
  padding: 24px;
  margin-top: auto;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: #D90075;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  flex-shrink: 0;
}

.user-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

.user-menu-arrow {
  color: #666;
  transform: rotate(180deg);
  transition: transform 0.2s;
}

.user-menu:hover .user-menu-arrow {
  color: #5200FF;
}

.user-dropdown {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 8px 0;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.user-menu:hover .user-dropdown {
  display: block;
}

.user-dropdown li a {
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #555;
  text-decoration: none;
  transition: all 0.2s;
}

.user-dropdown li a:hover {
  background: rgba(255, 105, 180, 0.1);
  color: #FF69B4;
}

.sidebar .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.sidebar .logo img {
  width: 120px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  margin-bottom: 15px;
}

.sidebar ul li a {
  text-decoration: none;
  color: #555;
  font-family: 'Karla', sans-serif;
  font-weight: 500;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 4px 0;
  gap: 12px;
}

.sidebar ul li a:hover {
  background: rgba(82, 0, 255, 0.1);
  color: #5200FF;
}

.sidebar ul li a.active {
  background: rgba(82, 0, 255, 0.2);
  color: #5200FF;
}

/* Dashboard */
.notifications-grid, .dossiers-grid, .ressources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-2px);
}

/* Enhanced Démarches Design */
.demarches-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 32px;
  border: 1px solid rgba(82, 0, 255, 0.08);
  box-shadow: 0 4px 20px rgba(82, 0, 255, 0.06);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.title-section h1 {
  margin: 0 0 8px 0;
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0;
  color: #6b7280;
  font-size: 1rem;
  font-weight: 500;
}

.primary-action-btn {
  background: #5200FF;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(82, 0, 255, 0.3);
  min-width: auto;
  justify-content: center;
  text-decoration: none;
}

.primary-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(82, 0, 255, 0.4);
  background: #4400d6;
  text-decoration: none;
  color: white;
}

.primary-action-btn:active {
  transform: translateY(-1px);
}

.primary-action-btn:focus {
  text-decoration: none;
  color: white;
}

.primary-action-btn:visited {
  text-decoration: none;
  color: white;
}

.primary-action-btn i {
  font-size: 1em;
}

/* Enhanced Table Design */
.table-wrapper {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  width: 100%;
  box-sizing: border-box;
}

.dossiers-table-enhanced {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-family: 'Karla', sans-serif;
}

.dossiers-table-enhanced thead {
  background: linear-gradient(135deg, #f8f9ff 0%, #f1f3ff 100%);
}

.dossiers-table-enhanced thead th {
  padding: 20px 24px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  font-size: 0.95rem;
  letter-spacing: 0.025em;
  border-bottom: 2px solid rgba(82, 0, 255, 0.1);
  position: relative;
}

.dossiers-table-enhanced thead th:nth-child(1) {
  width: 18%;
}

.dossiers-table-enhanced thead th:nth-child(2) {
  width: 35%;
}

.dossiers-table-enhanced thead th:nth-child(3) {
  width: 18%;
}

.dossiers-table-enhanced thead th:nth-child(4) {
  width: 29%;
}

.dossiers-table-enhanced tbody tr {
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.dossiers-table-enhanced tbody tr:hover {
  background: linear-gradient(135deg, rgba(82, 0, 255, 0.02) 0%, rgba(124, 58, 237, 0.02) 100%);
  transform: translateY(-1px);
}

.dossiers-table-enhanced tbody tr:last-child {
  border-bottom: none;
}

.dossiers-table-enhanced tbody td {
  padding: 20px 24px;
  vertical-align: middle;
  color: #374151;
  font-size: 0.95rem;
  word-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dossiers-table-enhanced tbody td:nth-child(2) {
  white-space: normal;
  word-wrap: break-word;
}

/* Enhanced Action Buttons */
.action-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-consult {
  background: linear-gradient(135deg, #5200FF 0%, #7c3aed 100%);
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(82, 0, 255, 0.25);
  min-width: 100px;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: none;
  letter-spacing: 0.025em;
  text-transform: capitalize;
}

.btn-consult:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(82, 0, 255, 0.35);
  background: linear-gradient(135deg, #4400d6 0%, #6d28d9 100%);
  color: white;
  text-decoration: none;
}

.btn-consult:active {
  transform: translateY(-1px);
}

.btn-delete {
  background: rgba(239, 68, 68, 0.1);
  color: #D90075;
  border: none;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.btn-delete:hover {
  background: rgba(239, 68, 68, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

.btn-delete i {
  font-size: 0.9rem;
}

/* Enhanced Status Tags */
.status-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.025em;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.status-tag::first-letter {
  text-transform: uppercase;
}

.status-tag[data-status="À valider"] {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
  color: #d97706;
  border-color: rgba(251, 146, 60, 0.2);
}

.status-tag[data-status="En analyse"] {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%);
  color: #2563eb;
  border-color: rgba(59, 130, 246, 0.2);
}

.status-tag[data-status="En traitement"] {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(147, 51, 234, 0.15) 100%);
  color: #7c3aed;
  border-color: rgba(168, 85, 247, 0.2);
}

.status-tag[data-status="Envoyé"] {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(22, 163, 74, 0.15) 100%);
  color: #16a34a;
  border-color: rgba(34, 197, 94, 0.2);
}

/* Démarches */
.dossier-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  position: relative;
}

.dossier-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 500;
  display: inline-block;
}

.status-open {
  background: #e0f4ff;
  color: #0066cc;
}

.status-closed {
  background: #e6e6e6;
  color: #666;
}

/*Resources */
.ressources-filters {
  margin: 20px 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.category-card {
  border-radius: 12px;
  padding: 24px;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-card i {
  font-size: 1.4em;
  color: white;
}

.category-content {
  flex: 1;
}

.category-description {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
}

.category-card:hover .category-description {
  opacity: 1;
}

.category-card[data-category="consommation"] .category-icon {
  background: linear-gradient(135deg, #5200FF, #B762FF);
}

.category-card[data-category="logement"] .category-icon {
  background: linear-gradient(135deg, #23006D, #5200FF);
}

.category-card[data-category="voisinage"] .category-icon {
  background: linear-gradient(135deg, #B762FF, #D90075);
}

.category-card[data-category="banque"] .category-icon {
  background: linear-gradient(135deg, #5200FF, #23006D);
}

.category-card[data-category="numerique"] .category-icon {
  background: linear-gradient(135deg, #D90075, #F76F2B);
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  filter: brightness(1.1);
}

.category-card h3 {
  margin: 0 0 15px 0;
  color: white;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.resource-type {
  color: white;
  background: rgba(255,255,255,0.2);
  transition: background-color 0.2s;
}

.resource-type:hover {
  background: rgba(255,255,255,0.3);
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

.resource-type-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.resource-type {
  color: #5200FF;
  text-decoration: none;
  padding: 8px;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.resource-type:hover {
  background-color: rgba(82, 0, 255, 0.1);
}

.filter {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  background: #e0e0ff;
  cursor: pointer;
  transition: all 0.2s;
}

.filter.active {
  background: #23006D;
  color: white;
}

/* Paramètres */
.settings-section {
  background: white;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.settings-form {
  display: grid;
  gap: 20px;
  max-width: 500px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.settings-toggles {
  display: grid;
  gap: 15px;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

/* Dashboard Styles */
.dashboard-container,
.demarches-container,
.ressources-container,
.parametres-container,
.juriste-container {
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/*Resources preview styles */
.ressources-preview {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ressource-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 8px;
  background: #f8f9fa;
  transition: background-color 0.2s;
}

.ressource-item:hover {
  background: #e9ecef;
}

.ressource-type-badge {
  flex-shrink: 0;
}

.type-label {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  background: #e0e0ff;
  color: #23006D;
  font-weight: 500;
}

.ressource-info {
  flex: 1;
  min-width: 0;
}

.ressource-info h4 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
}

.ressource-meta {
  margin: 0;
  font-size: 0.9em;
  color: #666;
  font-style: italic;
}

.ressource-action {
  flex-shrink: 0;
}

/* Dashboard Section Styles */
.dashboard-section {
  margin-bottom: 40px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: #1a1a1a;
}

.view-all-link {
  color: #5200FF;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.view-all-link:hover {
  color: #4400d6;
  text-decoration: underline;
}

/* Simple Actions */
.simple-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: nowrap;
  align-items: center;
}

.simple-action {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border: 2px solid rgba(82, 0, 255, 0.15);
  border-radius: 12px;
  text-decoration: none;
  color: #5200FF;
  transition: all 0.3s ease;
  min-width: 220px;
  max-width: 250px;
  text-align: left;
  box-shadow: 0 2px 12px rgba(82, 0, 255, 0.08);
  position: relative;
  overflow: hidden;
  flex: 1;
}

.simple-action::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(82, 0, 255, 0.05), transparent);
  transition: left 0.5s ease;
}

.simple-action:hover::before {
  left: 100%;
}

.simple-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(82, 0, 255, 0.15);
  text-decoration: none;
  color: #4400d6;
  border-color: rgba(82, 0, 255, 0.3);
  background: linear-gradient(135deg, #ffffff 0%, #f0f0ff 100%);
}

.simple-action i {
  font-size: 26px;
  color: #5200FF;
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.simple-action:hover i {
  color: #4400d6;
}

.simple-action-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.simple-action-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin: 0;
  color: #1a1a1a;
}

.simple-action-description {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.7;
  margin: 0;
  line-height: 1.3;
  color: #6b7280;
}

/* Clean Content Cards */
.clean-content-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e2e8f0;
}

/* Simple Empty State */
.simple-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
}

.simple-empty-state p {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 500;
  color: #374151;
}

.simple-empty-state small {
  font-size: 14px;
  color: #6b7280;
}

/* Simple Lists */
.simple-dossiers-list,
.simple-ressources-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.simple-dossier-item,
.simple-ressource-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #fafafe;
  border-radius: 8px;
  border: 1px solid #f1f3f4;
  transition: all 0.2s ease;
}

.simple-dossier-item:hover,
.simple-ressource-item:hover {
  background: #f8f9ff;
  border-color: rgba(82, 0, 255, 0.2);
}

.dossier-main-info,
.ressource-main-info {
  flex: 1;
}

.dossier-main-info h4,
.ressource-main-info h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

.dossier-date,
.ressource-theme {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.dossier-status-action,
.ressource-type-action {
  display: flex;
  align-items: center;
  gap: 12px;
}

.simple-status,
.simple-type {
  padding: 6px 10px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  background: #e2e8f0;
  color: #4a5568;
}

.simple-status[data-status="En analyse"] {
  background: rgba(59, 130, 246, 0.15);
  color: #2563eb;
}

.simple-status[data-status="À valider"] {
  background: rgba(251, 146, 60, 0.15);
  color: #d97706;
}

.simple-status[data-status="En traitement"] {
  background: rgba(168, 85, 247, 0.15);
  color: #7c3aed;
}

.simple-status[data-status="Envoyé"] {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}

.simple-status[data-status="À compléter"] {
  background: rgba(255, 105, 180, 0.15) !important;
  color: #FF69B4 !important;
}

.status-tag[data-status="À compléter"] {
  background: rgba(255, 105, 180, 0.15) !important;
  color: #FF69B4 !important;
  border-color: rgba(255, 105, 180, 0.2);
}

.status-badge[data-status="À compléter"] {
  background: rgba(255, 105, 180, 0.15) !important;
  color: #FF69B4 !important;
}

.dossier-status-tag[data-status="À compléter"] {
  background: rgba(255, 105, 180, 0.15) !important;
  color: #FF69B4 !important;
}

.dossier-type[data-status="À compléter"] {
  background: rgba(255, 105, 180, 0.15) !important;
  color: #FF69B4 !important;
}

.notification-type[data-status="À compléter"] {
  background: rgba(255, 105, 180, 0.15) !important;
  color: #FF69B4 !important;
}

.simple-link {
  color: #5200FF;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.simple-link:hover {
  background: rgba(82, 0, 255, 0.1);
  text-decoration: none;
}

/* Main Content Grid */
.main-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.content-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* Dossiers Preview */
.dossiers-preview {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dossier-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: #fafafe;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.dossier-item:hover {
  background: #f0f0ff;
  transform: translateX(4px);
}

.dossier-status {
  flex-shrink: 0;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.5px;
}

.status-badge::first-letter {
  text-transform: uppercase;
}

.status-badge[data-status="En analyse"] {
  background: rgba(59, 130, 246, 0.15);
  color: #2563eb;
}

.status-badge[data-status="À valider"] {
  background: rgba(251, 146, 60, 0.15);
  color: #d97706;
}

.status-badge[data-status="En traitement"] {
  background: rgba(168, 85, 247, 0.15);
  color: #7c3aed;
}

.status-badge[data-status="Envoyé"] {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}

.dossier-info {
  flex: 1;
}

.dossier-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.dossier-info h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  flex: 1;
}

.dossier-meta {
  margin: 0;
  font-size: 0.8rem;
  color: #6b7280;
}

.dossier-action {
  flex-shrink: 0;
}

.action-link {
  color: #5200FF;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.action-link:hover {
  background: rgba(82, 0, 255, 0.1);
  text-decoration: none;
}

/* Notifications Preview */
.notifications-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notification-item-compact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: #fafafe;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.notification-item-compact:hover {
  background: #f0f0ff;
}

.notification-indicator {
  flex-shrink: 0;
  margin-top: 2px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
}

.status-dot[data-status="En analyse"] {
  background: #2563eb;
}

.status-dot[data-status="À valider"] {
  background: #d97706;
}

.status-dot[data-status="En traitement"] {
  background: #7c3aed;
}

.status-dot[data-status="Envoyé"] {
  background: #16a34a;
}

.notification-info {
  flex: 1;
}

.notification-info p {
  margin: 0 0 6px 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #374151;
}

.notification-action {
  color: #5200FF;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
}

.notification-action:hover {
  text-decoration: underline;
}

.welcome-banner {
  color: #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.welcome-banner h1 {
  margin: 0;
  font-size: 1.8em;
}

.date {
  color: #666;
  margin-top: 5px;
}

.quick-actions-banner {
  margin: 20px 0;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.top-actions {
  display: flex;
  justify-content: flex-end;
}

.top-actions .action-button {
  padding: 10px 20px;
  background: #5200FF;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  height: 40px;
  line-height: 40px;
}

.top-actions .action-button i {
  font-size: 16px;
  line-height: 1;
}

.top-actions .action-button:hover {
  background: #4400d6;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  padding: 16px;
}

.dashboard-grid > div:nth-child(1) {
  grid-column: 1;
}

.dashboard-grid > div:nth-child(2) {
  grid-column: 1;
}

.dashboard-grid > div:nth-child(3) {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.dashboard-grid > div:nth-child(4) {
  grid-column: 1;
}

.demarches-container {
  padding: 40px;
  max-width: 100%;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
  margin-top: 40px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border-radius: 20px;
  border: 2px dashed rgba(82, 0, 255, 0.15);
}

.empty-state p {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #374151;
}

.empty-state small {
  font-size: 0.95rem;
  color: #6b7280;
}

.welcome-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
  background: #faf9ff;
  padding: 10px 0;
}

.empty-state p {
  margin: 0;
  font-weight: 500;
}

.empty-state small {
  display: block;
  margin-top: 8px;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.dashboard-grid .dossiers {
  grid-column: span 2;
}

.dashboard-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.dashboard-card .card-header h2 {
  margin: 0;
  color: #000000;
  font-size: 1.2em;
  font-weight: 600;
}

.badge {
  background: #23006D;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.9em;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.stat-item {
  text-align: center;
  padding: 15px;
  background: #f8f8ff;
  border-radius: 8px;
}

.stat-value {
  display: block;
  font-size: 1.8em;
  font-weight: bold;
  color: #23006D;
}

.stat-label {
  font-size: 0.9em;
  color: #666;
}

/* Quick Actions */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.action-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  background: #f8f8ff;
  border-radius: 8px;
  text-decoration: none;
  color: #23006D;
  transition: transform 0.2s;
}

.action-button:hover {
  transform: translateY(-2px);
}

.action-button i {
  font-size: 1.4em;
  margin-bottom: 8px;
}

/* Menu burger par défaut caché */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1001;
  background: #5200FF;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  width: 48px;
  height: 48px;
  box-shadow: 0 2px 8px rgba(82, 0, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: #4400d6;
  transform: scale(1.05);
}

.mobile-menu-toggle i {
  font-size: 18px;
}

/* Menu déroulant mobile */
.mobile-dropdown-menu {
  display: none;
  position: fixed;
  top: 70px;
  right: 16px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 220px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.mobile-dropdown-menu.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-menu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.mobile-nav-menu li {
  margin: 0;
}

.mobile-nav-menu li.separator {
  height: 1px;
  background: #f0f0f0;
  margin: 8px 16px;
}

.mobile-nav-menu a {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.mobile-nav-menu a:hover {
  background: #f8f8ff;
}

.mobile-nav-menu a.active {
  background: #f0f0ff;
  color: #5200FF;
  font-weight: 600;
}

.mobile-nav-menu a i {
  margin-right: 12px;
  width: 16px;
  text-align: center;
}

/* Desktop : cacher le menu burger et dropdown mobile */
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none !important;
  }

  .mobile-dropdown-menu {
    display: none !important;
  }

  .mobile-notification-toggle {
    display: none !important;
  }

  .mobile-notifications-panel {
    display: none !important;
  }

  .sidebar {
    position: fixed !important;
    transform: none !important;
    width: 180px !important;
    height: 100vh !important;
    box-shadow: none !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 100 !important;
  }

  .content {
    margin-left: 190px !important;
  }

  .mobile-overlay {
    display: none !important;
  }

  /* Forcer le masquage des éléments mobiles sur desktop */
  .mobile-only {
    display: none !important;
  }

  .desktop-only {
    display: block !important;
  }

  .dossiers-table.desktop-only {
    display: table !important;
  }
}

/* Header mobile avec logo */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: white;
  z-index: 998;
  border-bottom: 1px solid #eee;
  align-items: center;
  justify-content: center;
  padding: 0 120px; /* Espace pour le bouton menu et cloche */
}

.mobile-header .logo img {
  height: 32px;
  width: auto;
}

/* Icône de cloche mobile */
.mobile-notification-toggle {
  display: none;
  position: fixed;
  top: 6px;
  right: 72px;
  z-index: 1001;
  background: none;
  color: #5200FF;
  border: none;
  padding: 12px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-notification-toggle:hover {
  color: #4400d6;
  transform: scale(1.05);
}

.mobile-notification-toggle i {
  font-size: 18px;
}

/* Badge de notification */
.notification-badge {
  position: absolute;
  top: 0px;
  right: 0px;
  background: #D90075;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Panel des notifications mobiles */
.mobile-notifications-panel {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #faf9ff;
  z-index: 997;
  overflow-y: auto;
  padding: 16px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.mobile-notifications-panel.active {
  display: block;
}

.mobile-notifications-panel h2 {
  margin: 0 0 20px 0;
  color: #23006D;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 2px solid #e0e0ff;
}

/* Delete Modal Styles */
.delete-modal {
  max-width: 480px;
  text-align: center;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(82, 0, 255, 0.15);
  border: 1px solid rgba(82, 0, 255, 0.1);
  background: white;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001;
  margin: 0;
}

.delete-modal-icon {
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  color: #5200FF;
}

.delete-modal-icon i {
  font-size: 3rem;
  animation: warning-pulse 2s infinite;
}

@keyframes warning-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.delete-modal-content {
  padding: 0 32px 24px 32px;
  background: white;
}

.delete-modal-content h2 {
  margin: 0 0 16px 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
  line-height: 1.3;
}

.delete-modal-content p {
  margin: 0 0 16px 0;
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 500;
}

.delete-modal-actions {
  display: flex;
  gap: 12px;
  padding: 24px 32px;
  background: linear-gradient(135deg, #fafafe 0%, #f8f9ff 100%);
  justify-content: center;
  flex-wrap: wrap;
  border-top: 1px solid rgba(82, 0, 255, 0.1);
}

.btn-cancel,
.btn-delete-confirm {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  min-width: 140px;
  justify-content: center;
}

.btn-cancel {
  background: white;
  color: #6b7280;
  border: 2px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.btn-cancel:hover {
  background: #f8fafc;
  border-color: #5200FF;
  color: #5200FF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(82, 0, 255, 0.1);
}

.btn-delete-confirm {
  background: linear-gradient(135deg, #5200FF 0%, #7c3aed 100%);
  color: white;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(82, 0, 255, 0.3);
}

.btn-delete-confirm:hover {
  background: linear-gradient(135deg, #4400d6 0%, #6d28d9 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(82, 0, 255, 0.4);
}

.btn-delete-confirm:active {
  transform: translateY(-1px);
}

.btn-cancel i,
.btn-delete-confirm i {
  font-size: 0.9rem;
}

/* Styles pour les boutons d'actions dans le tableau desktop */
.action-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.btn-consult {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #5200FF 0%, #7c3aed 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(82, 0, 255, 0.2);
  min-width: 100px;
  justify-content: center;
}

.btn-consult:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(82, 0, 255, 0.3);
  background: linear-gradient(135deg, #4400d6 0%, #6d28d9 100%);
  color: white;
  text-decoration: none;
}

.btn-delete {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(239, 68, 68, 0.1);
  color: #D90075;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.btn-delete:hover {
  background: rgba(239, 68, 68, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

.btn-delete {
  background: none;
  border: none;
  color: #D90075;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
  min-width: 36px;
  height: 36px;
}

.btn-delete:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #D90075;
  transform: scale(1.05);
}

.btn-delete i {
  font-size: 1rem;
  font-weight: 600;
}

.action-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.actions-cell {
  text-align: right;
  padding: 12px 16px;
  vertical-align: middle;
}

.btn-consult {
  background: linear-gradient(135deg, #5200FF 0%, #7c3aed 100%);
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(82, 0, 255, 0.25);
  min-width: 100px;
  justify-content: center;
  font-family: 'Karla', sans-serif;
  letter-spacing: 0.025em;
}

.btn-consult:hover {
  background: linear-gradient(135deg, #4400d6 0%, #6d28d9 100%);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(82, 0, 255, 0.35);
}

.btn-consult i {
  font-size: 0.9rem;
}

/* Optimisation des performances - animations simplifiées */
.modal {
  will-change: opacity;
}

.modal-content {
  will-change: transform;
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Responsive pour la modal de suppression */
@media (max-width: 768px) {
  .delete-modal {
    max-width: 90%;
    margin: 20px;
  }

  .delete-modal-icon {
    padding: 24px;
  }

  .delete-modal-icon i {
    font-size: 2.5rem;
  }

  .delete-modal-content {
    padding: 24px 20px 12px 20px;
  }

  .delete-modal-content h2 {
    font-size: 1.3rem;
  }

  .delete-modal-content p {
    font-size: 0.95rem;
  }

  .delete-modal-actions {
    flex-direction: column;
    padding: 20px;
  }

  .btn-cancel,
  .btn-delete-confirm {
    width: 100%;
    min-width: auto;
  }
}

/* Desktop table styles */
@media (min-width: 769px) {
  .table-wrapper {
    display: block;
  }

  .mobile-only {
    display: none !important;
  }

  .desktop-only {
    display: block !important;
  }

  .dossiers-table-enhanced {
    width: 100%;
    table-layout: fixed;
  }

  .actions-col {
    width: 200px;
    min-width: 200px;
  }

  .action-buttons {
    display: flex !important;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
  }

  .btn-delete {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    background: rgba(239, 68, 68, 0.1) !important;
    color: #D90075 !important;
    border: none !important;
    padding: 10px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    width: 40px !important;
    height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .btn-delete:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    transform: scale(1.05) !important;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  /* Masquer complètement la timeline sur mobile */
  .timeline-modern {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .completion-container {
    display: block !important;
    margin: 16px 0 !important;
    padding: 0 !important;
  }

  .completion-container .completion-steps {
    display: block !important;
    margin-bottom: 20px !important;
  }

  .completion-container .step-indicator {
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;
    padding: 10px 0 !important;
  }

  .completion-container .step {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
  }

  .completion-container .step-number {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #f0f0f0 !important;
    color: #666 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    font-weight: bold !important;
    margin: 0 !important;
  }

  .completion-container .step.active .step-number,
  .completion-container .step.completed .step-number {
    background: #5200FF !important;
    color: white !important;
  }

  .completion-container .step-label {
    display: none !important;
  }

  /* Règles pour les étapes dans .completion-steps (autre contexte) */
  .completion-steps .step-label {
    display: none !important;
  }

  .completion-steps .step-indicator {
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;
    padding: 10px 0 !important;
  }

  .completion-steps .step {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
  }

  .completion-steps .step-number {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #f0f0f0 !important;
    color: #666 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    font-weight: bold !important;
    margin: 0 !important;
  }

  .completion-steps .step.active .step-number,
  .completion-steps .step.completed .step-number {
    background: #5200FF !important;
    color: white !important;
  }

  /* Règles spécifiques pour .status-info-card.completion-mode sur mobile */
  .status-info-card.completion-mode .step {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: row !important;
    min-width: 40px !important;
  }

  .status-info-card.completion-mode .step-number {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #f0f0f0 !important;
    color: #666 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    font-weight: bold !important;
    margin: 0 !important;
    border: 2px solid white !important;
  }

  .status-info-card.completion-mode .step.active .step-number,
  .status-info-card.completion-mode .step.completed .step-number {
    background: #5200FF !important;
    color: white !important;
  }

  .status-info-card.completion-mode .step-label {
    display: none !important;
    visibility: hidden !important;
  }

  .completion-container .step.active .step-label,
  .completion-container .step.completed .step-label {
    color: #5200FF !important;
    font-weight: 600 !important;
  }

  /* Styles généraux supprimés - gérés dans la section mobile */

  .status-info-card.completion-mode .step-number {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #f0f0f0 !important;
    color: #666 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    font-weight: bold !important;
    margin-bottom: 8px !important;
    border: 2px solid white !important;
  }

  .status-info-card.completion-mode .step.active .step-number,
  .status-info-card.completion-mode .step.completed .step-number {
    background: #5200FF !important;
    color: white !important;
  }

  .status-info-card.completion-mode .step-label {
    font-size: 10px !important;
    color: #666 !important;
    text-align: center !important;
    line-height: 1.2 !important;
    max-width: 80px !important;
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    word-wrap: break-word !important;
  }

  .status-info-card.completion-mode .step.active .step-label,
  .status-info-card.completion-mode .step.completed .step-label {
    color: #5200FF !important;
    font-weight: 600 !important;
  }

  /* Masquer tous les éléments de timeline possibles (sauf completion-mode) */
  .timeline-track,
  .timeline-step,
  .step-marker {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Masquer step-label sauf dans completion-mode */
  .step-label:not(.status-info-card.completion-mode .step-label) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Masquer spécifiquement les conteneurs de timeline */
  .timeline-container,
  .progress-container,
  .status-timeline {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* Touch optimizations for all devices */
* {
  -webkit-tap-highlight-color: rgba(82, 0, 255, 0.2);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Allow text selection for input elements */
input, textarea, [contenteditable] {
  -webkit-user-select: text;
  -khtml-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Improve scrolling performance */
.table-container,
.content,
.modal-content form {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Prevent zoom on inputs for iOS */
input[type="color"],
input[type="date"],
input[type="datetime"],
input[type="datetime-local"],
input[type="email"],
input[type="month"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="time"],
input[type="url"],
input[type="week"],
select:focus,
textarea {
  font-size: 16px !important;
}

/* Mobile loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #5200FF;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive Design for Enhanced Dashboard */
@media (max-width: 768px) {
  /* Dashboard container optimisé pour mobile */
  .dashboard-container {
    padding: 20px 16px;
    max-width: 100%;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
  }

  /* Header du dashboard plus compact */
  .demarches-header {
    padding: 16px;
    margin-bottom: 32px;
    border-radius: 16px;
    margin-top: 16px;
  }

  .header-content {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    text-align: center;
  }

  .title-section h1 {
    font-size: 1.6rem;
    margin: 0 0 8px 0;
    line-height: 1.2;
  }

  .subtitle {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
  }

  .primary-action-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    margin: 0;
    box-sizing: border-box;
  }

  /* Sections du dashboard */
  .dashboard-section {
    margin-bottom: 24px;
  }

  .section-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(82, 0, 255, 0.1);
  }

  .section-header h2 {
    font-size: 1.3rem;
    margin: 0;
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: -0.02em;
  }

  .view-all-link {
    font-size: 0.85rem;
    color: #5200FF;
    text-decoration: none;
    font-weight: 600;
  }

  /* Actions rapides responsive */
  .simple-actions {
    flex-direction: column;
    gap: 12px;
    flex-wrap: wrap;
  }

  .simple-action {
    flex-direction: row;
    justify-content: flex-start;
    min-width: auto;
    max-width: none;
    width: 100%;
    padding: 16px 20px;
    text-align: left;
    gap: 14px;
    flex: none;
  }

  .simple-action i {
    font-size: 22px;
    margin-right: 0;
  }

  .simple-action-title {
    font-size: 15px;
  }

  .simple-action-description {
    font-size: 12px;
  }

  /* Cards de contenu */
  .content-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(82, 0, 255, 0.06);
    border: 1px solid rgba(82, 0, 255, 0.08);
    margin-bottom: 20px;
  }

  /* Dossiers preview optimisé */
  .dossiers-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .dossier-item {
    padding: 16px;
    gap: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fafafe 0%, #f8f9ff 100%);
    border: 1px solid rgba(82, 0, 255, 0.12);
    transition: all 0.2s ease;
    position: relative;
  }

  .dossier-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(82, 0, 255, 0.1);
    border-color: rgba(82, 0, 255, 0.2);
  }

  .dossier-info {
    flex: 1;
  }

  .dossier-header-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
  }

  .dossier-info h4 {
    font-size: 1rem;
    margin: 0;
    line-height: 1.3;
    color: #1a1a1a;
  }

  .status-tag {
    align-self: flex-start;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 12px;
  }

  .dossier-meta {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
  }

  .dossier-action {
    flex-shrink: 0;
    align-self: center;
  }

  .action-link {
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(82, 0, 255, 0.1);
    color: #5200FF;
    text-decoration: none;
    font-weight: 600;
  }

  /*Ressources preview optimisé */
  .ressources-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .ressource-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(135deg, #fafafe 0%, #f8f9ff 100%);
    border-radius: 12px;
    border: 1px solid rgba(82, 0, 255, 0.12);
    transition: all 0.2s ease;
    position: relative;
  }

  .ressource-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(82, 0, 255, 0.1);
    border-color: rgba(82, 0, 255, 0.2);
  }

  .ressource-type-badge {
    flex-shrink: 0;
    margin-top: 2px;
  }

  .type-label {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 8px;
    background: #e0e0ff;
    color: #23006D;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .ressource-info {
    flex: 1;
    min-width: 0;
  }

  .ressource-info h4 {
    font-size: 0.95rem;
    margin: 0 0 4px 0;
    line-height: 1.3;
    color: #1a1a1a;
    font-weight: 600;
  }

  .ressource-meta {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
    font-style: italic;
  }

  .ressource-action {
    flex-shrink: 0;
    align-self: center;
  }

  .ressource-action .action-link {
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  /* Empty state optimisé */
  .empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 20px;
    border: 2px dashed rgba(82, 0, 255, 0.15);
    margin: 20px 0;
    position: relative;
    overflow: hidden;
  }

  .empty-state::before {
    content: '📋';
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
    opacity: 0.3;
  }

  .empty-state p {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #374151;
  }

  .empty-state small {
    font-size: 0.9rem;
    color: #6b7280;
    display: block;
    line-height: 1.5;
    max-width: 300px;
    margin: 0 auto;
  }

  /* Grid principal responsive */
  .main-content-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dashboard-section {
    margin-bottom: 20px;
  }

  .section-header {
    margin-bottom: 12px;
    margin-top: 4px;
  }

  .section-header h2 {
    font-size: 1.1rem;
    margin: 0;
    padding-top: 4px;
  }

  .content-card {
    padding: 12px;
  }

  .dossier-item {
    padding: 8px;
    gap: 8px;
  }

  .dossier-info h4 {
    font-size: 0.85rem;
  }

  .notification-item-compact {
    padding: 8px;
    gap: 8px;
  }

  .demarches-header {
    padding: 12px 8px;
    margin-bottom: 16px;
    border-radius: 12px;
  }

  .header-content {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    text-align: center;
  }

  .title-section h1 {
    font-size: 1.5rem;
    margin: 0 0 6px 0;
  }

  .subtitle {
    margin: 0;
    font-size: 0.85rem;
  }

  .primary-action-btn {
    width: 100%;
    padding: 16px 20px;
    min-width: auto;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, #5200FF 0%, #7c3aed 100%);
    box-shadow: 0 6px 20px rgba(82, 0, 255, 0.3);
    transition: all 0.3s ease;
  }

  .primary-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(82, 0, 255, 0.4);
  }

  .table-wrapper {
    margin: 0 -8px;
    border-radius: 12px 12px 0 0;
    border-left: none;
    border-right: none;
  }

  .action-buttons {
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
  }

  .btn-consult {
    min-width: auto;
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  .btn-delete {
    align-self: center;
    width: 36px;
    height: 36px;
  }

  .mobile-header {
    display: flex !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    top: 6px;
  }

  /* Masquer complètement les notifications sur mobile */
  .dashboard-card.notifications {
    display: none !important;
  }

  body {
    font-size: 14px; /* Taille de base pour mobile réduite */
    padding-top: 60px; /* Espace pour le header mobile */
    overflow-x: hidden; /* Empêcher le scroll horizontal */
  }

  .app {
    flex-direction: column;
    width: 100%;
    overflow-x: hidden;
  }

  /* Masquer complètement la sidebar sur mobile */
  .sidebar {
    display: none !important;
  }

  /* Afficher le menu déroulant mobile à la place */
  .mobile-dropdown-menu {
    display: none;
  }

  /* Overlay pour fermer le menu en cliquant à côté */
  .mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .mobile-overlay.active {
    display: block;
  }

  .content {
    margin-top: 0;
    margin-left: 0;
    padding: 8px;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .nav-menu {
    margin-top: 16px;
  }

  .nav-menu li a {
    padding: 12px 8px;
    font-size: 14px;
    border-radius: 6px;
    margin: 2px 0;
  }

  /* Container adaptations */
  .dashboard-container,
  .demarches-container,
  .ressources-container,
  .parametres-container,
  .juriste-container {
    padding: 4px 8px 8px 8px;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    width: 100%;
  }

  /* Grid layouts */
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0;
    width: 100%;
  }

  .dossiers-grid,
  .ressources-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
  }

  .themes-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
  }

  /* Welcome banner */
  .welcome-banner {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: -40px;
    text-align: center;
    width: 100%;
    padding-bottom: 12px;
  }

  .welcome-banner h1 {
    font-size: 1.3rem;
    line-height: 1.2;
  }

  .welcome-banner .action-button {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
    font-size: 14px;
  }

  /* Actions grid */
  .actions-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .action-button {
    padding: 12px;
    font-size: 14px;
    min-height: 48px;
  }

  /* Cards */
  .dashboard-card {
    padding: 12px;
    margin: 0 auto 12px auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .dossier-card {
    padding: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
  }

  /* Tables */
  .dossiers-table {
    display: block;
    overflow-x: auto;
    white-space: normal;
    font-size: 12px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .dossiers-table th,
  .dossiers-table td {
    scroll-snap-align: start;
    min-height: 44px;
    vertical-align: middle;
  }

  /* Mobile table improvements */
  .table-wrapper {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    margin: 8px 0;
  }

  .table-wrapper::after {
    content: '→';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #5200FF;
    font-size: 16px;
    opacity: 0.7;
    pointer-events: none;
    animation: bounce-horizontal 2s infinite;
  }

  @keyframes bounce-horizontal {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(3px); }
  }

  /* Hide scroll indicator after interaction */
  .table-wrapper.scrolled::after {
    display: none;
  }

  .dossiers-table th,
  .dossiers-table td {
    padding: 8px 6px;
    min-width: 100px;
  }

  /* Timeline mobile - masquer complètement */
  .timeline-modern {
    display: none !important;
  }

  .completion-container .completion-steps {
    display: none !important;
  }

  .completion-container .step-indicator {
    display: none !important;
  }

  /* Letter container */
  .letter-container {
    width: 100%;
    max-width: 100%;
    padding: 8px;
    margin: 0 auto;
    height: auto;
    min-height: 250px;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .letter-content {
    max-height: none;
    font-size: 12px;
    padding: 0;
  }

  .letter-container {
    padding: 8px 0;
  }

  /* Forms */
  .form-container {
    padding: 8px;
    margin: 8px auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Modal mobile optimized */
  .modal {
    padding: 8px;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px; /* Position plus haute pour la modal */
  }

  .modal-content {
    width: calc(100% - 16px);
    max-width: none;
    max-height: calc(100vh - 100px);
    border-radius: 12px;
    margin: 0;
    position: relative;
    overflow-y: auto;
  }

  .modal-content h2 {
    padding: 16px 12px;
    font-size: 1.2rem;
  }

  .modal-content form {
    padding: 16px 12px;
  }

  .modal-content .form-group {
    margin-bottom: 16px;
  }

  .modal-content label {
    font-size: 13px;
    margin-bottom: 4px;
  }

  .modal-content input,
  .modal-content select,
  .modal-content textarea {
    padding: 10px 12px;
    font-size: 16px; /* Prevent zoom on iOS */
  }

  .modal-content .actions {
    flex-direction: column;
    padding: 12px;
    gap: 8px;
  }

  .modal-actions button,
  .modal-content .actions button {
    width: 100%;
    min-width: auto;
    padding: 12px 16px;
  }

  /* Bloquer le scroll du body quand le modal est ouvert */
  body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
  }

  .modal-actions {
    flex-direction: column;
    gap: 6px;
  }

  .modal-actions button {
    width: 100%;
    padding: 12px;
    font-size: 14px;
  }

  /* Stats grid */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Notification improvements */
  .notification-item {
    padding: 12px;
    margin-bottom: 6px;
  }

  .notification-header {
    flex-direction: row;
    align-items: flex-start;
    gap: 6px;
  }

  /* User menu mobile */
  .user-menu {
    padding: 12px;
    margin-top: 16px;
  }

  .user-dropdown {
    position: static;
    display: block !important;
    box-shadow: none;
    border: none;
    background: transparent;
    margin: 8px 0 0 0;
    padding: 0;
  }

  .user-dropdown li a {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }

  /* Dossier details mobile */
  .juriste-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
    width: 100%;
    margin: 0 auto;
  }

  .juriste-grid.no-padding {
    padding: 0;
    width: 100%;
  }

  /* Mon juriste page mobile - empiler verticalement */
  .juriste-container .juriste-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin: 0 auto;
  }

  /* Page dossier mobile - empiler verticalement */
  .juriste-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  /* Forcer une seule colonne sur mobile */
  .juriste-container .juriste-grid {
    grid-template-columns: 1fr !important;
  }

  /* Réduire encore plus l'espace autour du chatbot sur mobile */
  .juriste-container .dashboard-card.chatbot {
    padding: 12px;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Réduire également le padding du conteneur juriste sur mobile */
  .juriste-container {
    padding: 70px;
    width: 100%;
    margin: 0 auto;
  }

  /* Sticky headers for better mobile navigation */
  .demarches-header,
  .welcome-banner {
    position: sticky;
    top: 60px;
    z-index: 99;
    background: #faf9ff;
    border-bottom: 1px solid rgba(82, 0, 255, 0.1);
  }

  /* Mobile-friendly table headers */
  .dossiers-table-enhanced thead th {
    position: sticky;
    top: 120px;
    z-index: 98;
    background: linear-gradient(135deg, #f8f9ff 0%, #f1f3ff 100%);
  }

  /* Improve mobile card interactions */
  .dossier-card,
  .ressource-card,
  .action-card {
    transition: all 0.2s ease;
    transform-origin: center;
  }

  .dossier-card:active,
  .ressource-card:active,
  .action-card:active {
    transform: scale(0.98);
  }

  /* Mobile form improvements */
  .form-group {
    margin-bottom: 16px;
  }

  .form-group label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
  }

  /* Mobile pagination improvements */
  .pagination-container {
    position: sticky;
    bottom: 0;
    background: white;
    border-top: 2px solid #f0f0f0;
    padding: 12px 8px;
    margin: 0 -8px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
  }

  /* Mobile breadcrumb improvements */
  .breadcrumb {
    position: sticky;
    top: 60px;
    z-index: 97;
    background: white;
    padding: 8px 0;
    margin: 0 -8px -8px -8px;
    padding-left: 8px;
    border-bottom: 1px solid #eee;
  }

  /* Breadcrumb mobile */
  .breadcrumb {
    font-size: 12px;
    margin-bottom: 8px;
    overflow-x: hidden;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    width: 100%;
  }

  /* Touch-friendly elements */
  .button,
  .action-button,
  .filter-btn {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 14px;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
  }

  .dropdown .dropbtn {
    min-height: 44px;
    padding: 10px 12px;
  }

  /* Input fields */
  input, select, textarea {
    min-height: 44px;
    font-size: 16px;
    padding: 10px;
  }

  /* Checkbox and radio improvements */
  input[type="checkbox"],
  input[type="radio"] {
    min-height: 18px;
    min-width: 18px;
    transform: scale(1.1);
  }

  /* Réorganiser l'ordre des éléments sur mobile pour les dossiers en préparation */
  .juriste-grid[data-status="En préparation"] {
    display: flex;
    flex-direction: column;
  }

  .juriste-grid[data-status="En préparation"] .dashboard-card:nth-child(2) {
    order: 1;
  }

  .juriste-grid[data-status="En préparation"] .dashboard-card:nth-child(1) {
    order: 2;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .themes-grid {
    grid-template-columns: 1fr;
  }

  .welcome-banner h1 {
    font-size: 1.3rem;
  }

  .dashboard-card {
    padding: 12px;
  }

  .modal-content {
    padding: 16px;
    margin: 5% auto;
  }

  .step-label {
    font-size: 10px;
    max-width: 70px;
  }
}

/* Classes de contrôle d'affichage */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .content {
    padding-top: 60px;
  }

  .mobile-menu-toggle {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    padding: 8px;
  }
}

/* Tailles de texte responsives */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }

  .button, .action-button {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}

/* Images responsives */
img {
  max-width: 100%;
  height: auto;
}

.dashboard-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.dashboard-card h2 {
  margin: 0 0 20px 0;
  color: #23006D;
  font-size: 1.2em;
}

/* Notifications */
.notification-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
}

.notification-item {
  background: white;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid #f0f0ff;
  position: relative;
  transition: all 0.2s ease;
}

.notification-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(82, 0, 255, 0.15);
  border-color: #e0e0e0;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 8px;
}

.notification-type {
    padding: 6px 12px;
    border-radius: 25px;
    font-size: 0.8em;
    font-weight: 600;
    flex-shrink: 0;
    text-transform: lowercase;
}

.notification-type::first-letter {
    text-transform: uppercase;
}

/* Status colors matching status-tag colors */
.notification-type[data-status="En analyse"] {
  background: rgba(0, 191, 255, 0.15);
  color: #0066cc;
}

.notification-type[data-status="À valider"] {
  background: rgba(255, 165, 0, 0.15);
  color: #cc6600;
}

.notification-type[data-status="En traitement"] {
  background: rgba(255, 20, 147, 0.15);
  color: #cc0066;
}

.notification-type[data-status="Envoyé"] {
  background: rgba(50, 205, 50, 0.15);
  color: #228822;
}

.notification-type[data-status="Reçu"] {
  background: rgba(0, 255, 127, 0.15);
  color: #009944;
}

.notification-seen {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #5200FF;
  flex-shrink: 0;
  margin-top: 2px;
}

.notification-link {
  color: #5200FF;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9em;
  text-transform: uppercase;
}

.notification-link:hover {
  text-decoration: underline;
}

.notification-content {
  flex: 1;
  margin-bottom: 12px;
}

.notification-content p {
  margin: 0;
  font-size: 0.95em;
  line-height: 1.4;
  color: #555;
  font-family: 'Karla', sans-serif;
}

.notification-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid #f0f0ff;
}

.notification-date {
  font-size: 0.8em;
  color: #888;
  font-weight: 500;
}

.notification-link {
  font-size: 0.85em;
  color: #5200FF;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: rgba(82, 0, 255, 0.1);
  border-radius: 20px;
  transition: all 0.2s ease;
}

.notification-link:hover {
  background: rgba(82, 0, 255, 0.2);
  transform: translateX(2px);
}

/* Couleur spéciale pour les notifications "En traitement" */
.notification-item:has(.notification-type[data-status="En traitement"]) .notification-link {
  color: #5200FF;
  background: transparent;
}

.notification-item:has(.notification-type[data-status="En traitement"]) .notification-link:hover {
  background: rgba(82, 0, 255, 0.1);
}

/* Dossiers */
.dossiers-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin: 20px 0;
}

.dossiers-table th,
.dossiers-table td {
    padding: 16px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.dossiers-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.procedure-tag,
.status-tag {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
}

.procedure-tag {
    background: #f0f0ff;
    color: #5200FF;
}

.status-tag {
    padding: 6px 12px;
    border-radius: 25px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: lowercase;
}

.status-tag::first-letter {
    text-transform: uppercase;
}

.status-tag[data-status="Clôturé"] {
    background: rgba(0, 178, 65, 0.1);
    color: #00b241;
}

.status-tag[data-status="En cours"] {
    background: #FFF6D6;
    color: #806A00;
}

.status-tag[data-status="En pause"] {
    background: rgba(128, 128, 128, 0.1);
    color: #808080;
}

.status-tag[data-status="Envoyé"] {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.status-tag[data-status="Attente adversaire"] {
    background: rgba(255, 140, 0, 0.1);
    color: #ff8c00;
}

.status-tag[data-status="À compléter"] {
    background: rgba(255, 192, 203, 0.1);
    color: #ff69b4;
}

.status-tag[data-status="En analyse"] {
  background: rgba(0, 191, 255, 0.2);
  color: #0066cc;
}

.status-tag[data-status="À valider"] {
  background: rgba(255, 165, 0, 0.2);
  color: #cc6600;
}

.status-tag[data-status="En traitement"] {
  background: rgba(255, 20, 147, 0.2);
  color: #cc0066;
}

.status-tag[data-status="Envoyé"] {
  background: rgba(50, 205, 50, 0.2);
  color: #228822;
}

.status-tag[data-status="Reçu"] {
  background: rgba(0, 255, 127, 0.2);
  color: #009944;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: #5200FF;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Karla', sans-serif;
}

.dropbtn:hover {
    background: #4400d6;
    color: white !important;
    border: 1px solid transparent;
}

.dossiers-table td {
    font-size: 14px;
    font-family: 'Karla', sans-serif;
}

.welcome-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-banner .action-button {
    margin-left: auto;
    padding: 8px 16px;
    font-size: 14px;
    height: auto;
    line-height: normal;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 160px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 99999;
    top: 0;
    left: 100%;
    margin-left: 5px;
}

.dropdown {
    position: relative;
    z-index: 9999;
}

.dossiers-table td {
    position: relative;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a:hover {
    background: #f8f9fa;
}

.dossier-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.dossier-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dossier-type {
  background: #f0f0ff;
  color: #5200FF;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 500;
  display: inline-block;
  width: fit-content;
}

.dossier-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 500;
}

.status-open {
  background: #e0f4ff;
  color: #0066cc;
}

.status-closed {
  background: #e6e6e6;
  color: #666;
}

.dossier-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dossier-metadata {
  color: #666;
  font-size: 0.9em;
}

.dossier-date {
  font-size: 0.9em;
  color: #666;
  font-family: 'Karla', sans-serif;
}

.dossier-type {
  font-size: 0.9em;
  color: #666;
}

.dossier-link {
  color: #5200FF;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 500;
}

.dossier-link:hover {
  text-decoration: underline;
}

.status-en-cours { background: #FFF6D6; color: #806A00; }
.status-cloture { background: #EBFFE7; color: #006D1F; }
.status-envoye { background: #E7F5FF; color: #004B87; }
.status-en-pause { background: #F2F2F2; color: #666666; }
.status-attente-adversaire { background: #FFE7E1; color: #802200; }

/*Resources */
.ressource-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ressource-item {
  padding: 15px;
  border-radius: 8px;
  background: #f8f8ff;
  position: relative;
}

.ressource-type {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  background: #e0e0ff;
  color: #23006D;
  margin-bottom: 8px;
}

.view-all {
  display: block;
  text-align: right;
  margin-top: 15px;
  color: #5200FF;
  text-decoration: none;
  font-size: 0.9em;}

.view-all:hover {
  text-decoration: underline;
}


/* Styles pour la page juriste */
.juriste-container {
  padding: 40px;
  max-width: 1200px;
margin: 0 auto;
}

.juriste-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  padding: 0;
  width: 100%;
}

.chatbot-container {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
}

.chatbot-container iframe {
  width: 100% !important;
  border: none;
  display: block;
}

.guides-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.guide-item {
  padding: 15px;
  border-radius: 8px;
  background: #f8f8ff;
}

.guide-item h4 {
  margin: 0 0 8px 0;
  color: #23006D;
}

.guide-item p {
  margin: 0 0 12px 0;
  color: #666;
  font-size: 0.9em;
}

.guide-link {
  color: #5200FF;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 500;
}

.guide-link:hover {
  text-decoration: underline;
}

.juriste-container iframe {
  border: none;
  width: 100%;
  height: calc(100vh - 180px);
  border-radius: 12px;
}

.juriste-container .dashboard-card.chatbot {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.juriste-container .chatbot-container {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
}

.juriste-grid-fullwidth {
  display: block;
  width: 100%;
  padding: 0;
}

.juriste-container .juriste-grid-fullwidth {
  display: block !important;
  width: 100% !important;
  grid-template-columns: none !important;
}

.juriste-container .chatbot-container iframe {
  width: 100% !important;
  height: 500px !important;
  border: none !important;
  border-radius: 12px;
  display: block;
}

.login-button, .action-button, button {
    background: #5200FF;
    color: white;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-button:hover, button:hover {
    background: white;
    color: #5200FF;
    border: 1px solid #5200FF;
}

.offers-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px auto;
    max-width: 800px;
    justify-content: center;
}

.offers-container:has(.offer-card:nth-child(3)[style*="display: none"]) {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
}

.offer-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid #e0e0ff;
    transition: all 0.3s ease;
    position: relative;
    min-height: 300px;
}

.offer-card input[type="radio"] {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
}

.form-step h2 {
    text-align: center;
    margin-bottom: 30px;
}

.form-step {
    display: flex;
    flex-direction: column;
}

.form-step .button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.form-step .prev-btn,
.form-step button[type="submit"],
.form-step .next-btn{
    margin: 0;
}

.offer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(82, 0, 255, 0.2);
}

.offer-card h3 {
    color: #23006D;
    margin: 0 0 10px 0;
}

.offer-card .price {
    font-size: 24px;
    font-weight: bold;
    color: #5200FF;
    margin: 10px 0;
}

.offer-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.offer-card li {
    margin: 10px 0;
    font-size: 0.9em;
}

.dropdown-content a:hover {
    background: #f8f9fa;
}

.dropbtn {
    background: #5200FF;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
}

.dropbtn:hover, .action-button:hover {
    background: #4400d6;
    color: white !important;
    border: 1px solid transparent;
}

.action-button.small {
    padding: 8px 16px;
    font-size: 14px;
}

.action-button.outline {
    background: white;
    color: #5200FF;
    border: 1px solid #5200FF;
}

.action-button.outline:hover {
    background: #5200FF;
    color: white;
}

/* === Cartes Thèmes & Ressources (ajouts non destructifs) === */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 1200px) {
  .themes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .themes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .themes-grid {
    grid-template-columns: 1fr;
  }
}

.theme-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  border: none;
  border-radius: 12px;
  background-color: white;
  text-decoration: none;
  color: #333;
  font-family: 'Karla', sans-serif;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.theme-card:hover {
  transform: translateY(-3px);
  background: rgba(82, 0, 255, 0.1);
  box-shadow: 0 4px 15px rgba(82, 0, 255, 0.1);
}

.theme-card:hover .theme-nom {
  color: #5200FF;
}

.theme-picto {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  background-color: #fff;
}

.theme-nom {
  font-weight: 600;
  font-size: 1rem;
}

/* === Cartes Ressources (section filtrée ou par thème) === */
.ressources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 0 8px;
}

.ressource-card {
  border: 2px solid #f0f0ff;
  border-radius: 16px;
  padding: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #fafafe 100%);
  box-shadow: 0 4px 15px rgba(82, 0, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ressource-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #5200FF 0%, #7c3aed 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ressource-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(82, 0, 255, 0.15);
  border-color: rgba(82, 0, 255, 0.2);
}

.ressource-card:hover::before {
  opacity: 1;
}

.ressource-type {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 25px;
  letter-spacing: 0.5px;
  border: 2px solid transparent;
}

/* Couleurs par type de document avec plus de contraste */
.ressource-card[data-type="guide"] .ressource-type {
  color: #ffffff;
  background: linear-gradient(135deg, #FF6B6B 0%, #FF5252 100%);
  border-color: rgba(255, 107, 107, 0.3);
}

.ressource-card[data-type="modele"] .ressource-type {
  color: #ffffff;
  background: linear-gradient(135deg, #4ECDC4 0%, #26A69A 100%);
  border-color: rgba(78, 205, 196, 0.3);
}

.ressource-card[data-type="checklist"] .ressource-type {
  color: #ffffff;
  background: linear-gradient(135deg, #45B7D1 0%, #2196F3 100%);
  border-color: rgba(69, 183, 209, 0.3);
}

.ressource-card[data-type="article"] .ressource-type {
  color: #ffffff;
  background: linear-gradient(135deg, #96CEB4 0%, #66BB6A 100%);
  border-color: rgba(150, 206, 180, 0.3);
}

.ressource-card[data-type="fiche"] .ressource-type {
  color: #ffffff;
  background: linear-gradient(135deg, #FF8C42 0%, #FF7043 100%);
  border-color: rgba(255, 140, 66, 0.3);
}

.ressource-card[data-type="trucs et astuces"] .ressource-type {
  color: #ffffff;
  background: linear-gradient(135deg, #AB47BC 0%, #8E24AA 100%);
  border-color: rgba(171, 71, 188, 0.3);
}

.ressource-card[data-type="quiz"] .ressource-type {
  color: #ffffff;
  background: linear-gradient(135deg, #FFA726 0%, #FF9800 100%);
  border-color: rgba(255, 167, 38, 0.3);
}

.ressource-card h3 {
  font-family: 'Karla', sans-serif;
  font-size: 1rem;
  margin: 0 0 0.75rem 0;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
  padding-right: 70px;
  min-height: 2.4rem;
  display: flex;
  align-items: center;
}

.ressource-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #5200FF 0%, #7c3aed 100%);
  color: white;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(82, 0, 255, 0.2);
  margin-top: auto;
  align-self: flex-start;
}

.ressource-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(82, 0, 255, 0.3);
  background: linear-gradient(135deg, #4400d6 0%, #6d28d9 100%);
  text-decoration: none;
  color: white;
}

.ressource-link::after {
  content: '→';
  font-size: 1.1em;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.ressource-link:hover::after {
  transform: translateX(2px);
}

.breadcrumb {
  margin-bottom: 20px;
  font-size: 0.9em;
}

.breadcrumb a {
  color: #5200FF;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb .separator {
  margin: 0 8px;
  color: #666;
}

.breadcrumb .current {
  color: #666;
}

.ressource-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.ressource-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.ressource-card-link:hover .ressource-card {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(82, 0, 255, 0.15);
}

.search-bar {
  margin: 20px auto;
  text-align: center;
}

.ressources-filters {
  margin: 20px 0;
  text-align: center;
}

.filter-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 20px;
  background: white;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
}

.filter-btn:hover {
  border-color: #5200FF;
  color: #5200FF;
}

.filter-btn.active {
  background: #5200FF;
  border-color: #5200FF;
  color: white;
}

#searchInput {
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.dossier-container {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
}

.section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.section h3 {
    margin-bottom: 16px;
    color: #23006D;
}

.editable-field {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.coordonnees-input {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
}

.save-coords-btn {
    align-self: flex-end;
    padding: 8px 16px;
    background: #5200FF;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.label {
    color: #666;
    font-size: 0.9em;
}

.document-viewer {
    width: 100%;
    height: 600px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.document-viewer iframe {
    width: 100%;
    height: 100%;
}

.upload-zone {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.files-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    padding: 8px 12px;
    background: #f8f8ff;
    border-radius: 6px;
}

.file-item a {
    color: #5200FF;
    text-decoration: none;
}

.timeline-sidebar {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: fit-content;
    margin-top: 86px;
}

.timeline-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    padding-left: 24px;
}

.timeline-step {
    position: relative;
    padding-left: 16px;
}

.timeline-step::before {
    display: none;
}

.timeline-step.completed::before {
    display: none;
}

.timeline-step.current::before {
    display: none;
}

.timeline-steps::after {
    content: '';
    position: absolute;
    left: -18px;
    top: 12px;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}

.timeline-step-title {
    font-weight: 500;
    margin-bottom: 4px;
}

.timeline-step-date {
    font-size: 0.85em;
    color: #666;
}

.dossier-details-grid {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.dossier-header-info {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.dossier-header-actions {
    position: absolute;
    top: 24px;
    right: 24px;
}

.dossier-description {
    margin: 24px 0;
}

.dossier-description h3 {
    font-size: 1.1em;
    margin-bottom: 12px;
    color: #333;
}

.dossier-description p {
    line-height: 1.6;
    color: #555;
}

.dossier-metadata {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 24px 0;
    padding: 20px;
    background: #f8f8ff;
    border-radius: 8px;
}

.metadata-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.metadata-label {
    font-size: 0.9em;
    color: #666;
}

.metadata-value {
    font-weight: 500;
    color: #23006D;
}

.payment-status-paid {
    color: #00b241;
}

.payment-status-unpaid {
    color: #d32f2f;
}

.next-steps {
    margin-top: 24px;
    padding: 20px;
    background: #fff3dc;
    border-radius: 8px;
}

.next-steps h3 {
    font-size: 1.1em;
    margin-bottom: 12px;
    color: #333;
}

.next-steps p {
    line-height: 1.6;
    color: #555;
}

.demarches-container {
  padding: 40px;
  max-width: 100%;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.dossiers-table {
    width: 100%;
    table-layout: fixed;
    font-family: 'Karla', sans-serif;
}

.dossiers-table .party-col {
    font-weight: bold;
}

.dossiers-table-enhanced tbody td:nth-child(2) {
    font-weight: bold;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.15s ease-out;
}

.modal.show {
    display: flex !important;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 95%;
    max-width: 700px;
    max-height: 90vh;
    box-shadow: 0 20px 60px rgba(82, 0, 255, 0.15);
    border: 1px solid rgba(82, 0, 255, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0;
    z-index: 10000;
    transform: scale(0.95);
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-content h2 {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    margin: 0;
    padding: 32px;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    border-bottom: 1px solid rgba(82, 0, 255, 0.1);
    text-align: center;
    letter-spacing: -0.02em;
}

.modal-content form {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}

.modal-content .form-group {
    margin-bottom: 24px;
}

.modal-content label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2d3748;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.025em;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    background: #f8f9ff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #2d3748;
    font-family: 'Karla', sans-serif;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(82, 0, 255, 0.05);
}

.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: #5200FF;
    background: white;
    box-shadow: 0 0 0 4px rgba(82, 0, 255, 0.1);
    transform: translateY(-1px);
}

/* Styles pour les champs du formulaire */
.form-select,
.form-input,
.form-textarea,
.form-file {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    background: #f8f9ff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #2d3748;
    font-family: 'Karla', sans-serif;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(82, 0, 255, 0.05);
}

.form-select:hover,
.form-input:hover,
.form-textarea:hover {
    border-color: #cbd5e0;
    background: white;
}

.form-select:focus,
.form-input:focus,
.form-textarea:focus,
.form-file:focus {
    outline: none;
    border-color: #5200FF;
    background: white;
    box-shadow: 0 0 0 4px rgba(82, 0, 255, 0.1);
    transform: translateY(-1px);
}

.form-select:hover,
.form-input:hover,
.form-textarea:hover {
    border-color: #cbd5e0;
    background: white;
}

/* Styles pour les champs obligatoires */
.required-field label {
    position: relative;
    font-weight: 600;
    color: #2d3748;
    letter-spacing: 0.025em;
}

.required-star {
    color: #e53e3e;
    font-weight: bold;
    font-size: 16px;
    margin-left: 4px;
}

/* Amélioration des placeholders */
.form-input::placeholder,
.form-textarea::placeholder {
    color: #a0aec0;
    font-style: italic;
}

.form-select option:first-child {
    color: #a0aec0;
    font-style: italic;
}

/* Style pour les fichiers */
.form-file {
    padding: 12px 16px;
    background: #f7fafc;
    border-style: dashed;
    cursor: pointer;
    border-color: #cbd5e0;
}

.form-file:hover {
    background: #edf2f7;
    border-color: #5200FF;
}

.modal-content .actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    padding: 24px 32px;
    background: linear-gradient(135deg, #fafafe 0%, #f8f9ff 100%);
    border-top: 1px solid rgba(82, 0, 255, 0.1);
    margin: 0 -32px -32px -32px;
    position: sticky;
    bottom: 0;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    padding: 24px 32px;
    background: linear-gradient(135deg, #fafafe 0%, #f8f9ff 100%);
    border-top: 1px solid rgba(82, 0, 255, 0.1);
    margin: 0 -32px -32px -32px;
    position: sticky;
    bottom: 0;
}

.modal-actions button,
.modal-content .actions button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    min-width: 140px;
    justify-content: center;
    font-family: 'Karla', sans-serif;
    letter-spacing: 0.025em;
}

.modal-actions .button.secondary,
.modal-content .actions .button.secondary {
    background: white;
    color: #6b7280;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.modal-actions .button.secondary:hover,
.modal-content .actions .button.secondary:hover {
    background: #f8fafc;
    border-color: #5200FF;
    color: #5200FF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(82, 0, 255, 0.1);
}

.modal-actions .button.primary,
.modal-content .actions .button.primary {
    background: linear-gradient(135deg, #5200FF 0%, #7c3aed 100%);
    color: white;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(82, 0, 255, 0.3);
    border-radius: 25px;
    padding: 14px 28px;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.modal-actions .button.primary:hover,
.modal-content .actions .button.primary:hover {
    background: linear-gradient(135deg, #4400d6 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(82, 0, 255, 0.4);
}

.modal-actions .button.primary:active,
.modal-content .actions .button.primary:active {
    transform: translateY(-1px);
}

.btn-primary {
    background: #5200FF;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.form-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 32px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.pre-inscription-form .form-group {
    margin-bottom: 20px;
}

.pre-inscription-form label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.pre-inscription-form input,
.pre-inscription-form select,
.pre-inscription-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #E0E0FF;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.2s ease;
    color: #333;
}

.pre-inscription-form input:focus,
.pre-inscription-form select:focus,
.pre-inscription-form textarea:focus {
    outline: none;
    border-color: #5200FF;
    background: white;
    box-shadow: 0 0 0 2px rgba(82, 0, 255, 0.05);
}

.form-container,
.form-container * {
    font-family: 'Karla', sans-serif;
}

.pre-inscription-form button {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    margin-right: 10px;
    transition: all 0.2s ease;
}

.pre-inscription-form button:hover {
    transform: translateY(-1px);
}

.pre-inscription-form .next-btn {
    background: #5200FF;
    color: white;
    border: none;
}

.pre-inscription-form .next-btn:hover {
    background: #4400d6;
    box-shadow: 0 2px 6px rgba(82, 0, 255, 0.15);
}

.pre-inscription-form .prev-btn {
    background: white;
    color: #555;
    border: 1px solid #E0E0FF;
}

.pre-inscription-form .prev-btn:hover {
    background: white;
    border-color: #5200FF;
    color: #5200FF;
}

.pre-inscription-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pre-inscription-form input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
}

/* Dossier details styles */
.dossier-container {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
}

.dossier-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.dossier-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dossier-side {
    position: sticky;
    top: 24px;
    height: fit-content;
}

.timeline {
    margin-bottom: 24px;
}

.timeline-track {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 32px 48px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 15px rgba(82, 0, 255, 0.05);
  margin: 32px 0;
}

.timeline-track::before {
  display: none;
}

.letter-container {
  background: white;
  padding: 32px;
  border-radius: 8px;
  width: calc(100% - 64px);
  height: 500px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  position: relative;
}

.letter-content {
  font-family: 'Karla', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-y: auto;
  max-height: calc(100% - 80px);
  padding-right: 10px;
}

.letter-editor {
  width: 100%;
  min-height: 800px;
  padding: 20px;
  font-family: 'Karla', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  border: 1px solid #ddd;
  border-radius: 4px;
  white-space: pre-wrap;
}

.letter-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

.button.secondary {
  background: white;
  color: #5200FF;
  border: 1px solid #5200FF;
}

.button.primary {
  background: linear-gradient(135deg, #5200FF 0%, #7c3aed 100%);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 12px 24px;
  font-weight: 600;
  letter-spacing: 0.025em;
  box-shadow: 0 4px 15px rgba(82, 0, 255, 0.25);
  transition: all 0.3s ease;
}

.button.primary:hover {
  background: linear-gradient(135deg, #4400d6 0%, #6d28d9 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(82, 0, 255, 0.35);
}

.button {
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

.timeline-track::before {
  display: none;
}

.timeline-step {
  position: relative;
  z-index: 2;
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  padding: 0 8px;
  flex-shrink: 0;
}

.step-marker {
  width: 16px;
  height: 16px;
  background: white;
  border: 2px solid #E0E0E0;
  border-radius: 50%;
  margin-bottom: 24px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.step-label {
  font-size: 0.85em;
  color: #666;
  text-align: center;
  max-width: 80px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-step {
  position: relative;
  z-index: 2;
  flex: 1;
  text-align: center;
}

.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(50% + 8px);
  width: calc(100% - 16px);
  height: 2px;
  background: #E0E0E0;
  z-index: 1;
}

.timeline-step .step-marker {
  width: 16px;
  height: 16px;
  background: #E0E0E0;
  border: 2px solid #E0E0E0;
  border-radius: 50%;
  margin: 32px auto 0;
  position: relative;
  z-index: 2;
}

.timeline-step.completed .step-marker {
  background: white;
  border-color: #5200FF;
}

.timeline-step.active .step-marker {
  background: #5200FF;
  border-color: #5200FF;
}

.timeline-step .step-label {
  position: absolute;
  width: 100%;
  text-align: center;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

.timeline-step.completed .step-label,
.timeline-step.active .step-label {
  color: #5200FF;
}

/* FORCER L'AFFICHAGE HORIZONTAL SUR MOBILE - RÈGLES ULTRA SPÉCIFIQUES */
@media (max-width: 768px) {
  /* Forcer l'affichage horizontal des étapes pour les dossiers "À compléter" */
  .status-info-card.completion-mode .completion-steps .step-indicator {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 20px !important;
    padding: 10px 0 !important;
  }

  .status-info-card.completion-mode .completion-steps .step {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
  }

  .status-info-card.completion-mode .completion-steps .step-number {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #f0f0f0 !important;
    color: #666 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    font-weight: bold !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }

  .status-info-card.completion-mode .completion-steps .step.active .step-number {
    background: #5200FF !important;
    color: white !important;
  }

  /* MASQUER COMPLÈTEMENT LES LABELS SUR MOBILE */
  .status-info-card.completion-mode .completion-steps .step-label {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}

.timeline-step:hover .step-marker {
  transform: scale(1.2);
  box-shadow: 0 0 0 4px rgba(82, 0, 255, 0.1);
}

.letter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.letter-header h3 {
  margin: 0;
  color: #333;
}

.letter-content {
  padding: 20px;
  border-radius: 4px;
  min-height: 200px;
  white-space: pre-wrap;
  font-family:'Karla', sans-serif;
  line-height: 1.5;
}

.letter-editor {
  width: 100%;
  min-height: 200px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Karla', sans-serif;
  white-space: pre-wrap;
}

.letter-actions {
  display: flex;
  gap: 10px;
}

.edit-btn, .validate-btn {
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

.edit-btn {
  background: #f0f0f0;
  color: #333;
}

.validate-btn {
  background: linear-gradient(135deg, #5200FF 0%, #7c3aed 100%);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 12px 24px;
  font-weight: 600;
  letter-spacing: 0.025em;
  box-shadow: 0 4px 15px rgba(82, 0, 255, 0.25);
  transition: all 0.3s ease;
}

.validate-btn:hover {
  background: linear-gradient(135deg, #4400d6 0%, #6d28d9 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(82, 0, 255, 0.35);
}

.button.cancel {
  background: #FF69B4;
  color: white;
  border: none;
}

.button.cancel:hover {
  background: #FF1493;
}

.status-tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.9rem;
  background: #e0e0e0;
}

.status-tag[data-status="En cours"] {
  background: #FFF3E0;
  color: #E65100;
}

.status-tag[data-status="Clôturé"] {
  background: #E8F5E9;
  color: #2E7D32;
}

.status-tag[data-status="Àcompléter"] {
  background: #E3F2FD;
  color: #1565C0;
}

.preparation-message {
  text-align: center;
  padding: 2rem;
  color: #666;
  font-style: italic;
}

.action-button.small {
  padding: 8px 16px;
  font-size: 14px;
}

.actions-cell {
  display: flex;
  gap: 8px;
  align-items: center;
}

.delete-button {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delete-button:hover {
  color: #c82333;
}
.dossiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 20px;
  padding: 4px;
}

@media (max-width: 768px) {
  .dossiers-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 4px;
    margin-top: 20px;
  }
}

.dossier-card {
  background: white;
  border-radius: 8px;
  padding: 12px;
  padding-right: 36px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border: 1px solid rgba(82, 0, 255, 0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  margin-bottom: 8px;
}

.dossier-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(82, 0, 255, 0.12);
  border-color: rgba(82, 0, 255, 0.15);
}

.dossier-card-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.dossier-type {
  font-size: 0.8em;
  padding: 6px 12px;
  border-radius: 20px;
  flex-shrink: 0;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Utiliser les mêmes couleurs que les status-tag */
.dossier-type[data-status="En analyse"] {
  background: rgba(0, 191, 255, 0.2);
  color: #0066cc;
}

.dossier-type[data-status="À valider"] {
  background: rgba(255, 165, 0, 0.2);
  color: #cc6600;
}

.dossier-type[data-status="En traitement"] {
  background: rgba(255, 20, 147, 0.2);
  color: #cc0066;
}

.dossier-type[data-status="Envoyé"] {
  background: rgba(50, 205, 50, 0.2);
  color: #228822;
}

.dossier-type[data-status="Reçu"] {
  background: rgba(0, 255, 127, 0.2);
  color: #009944;
}

.dossier-status-tag {
  font-size: 0.9em;
  padding: 8px 14px;
  border-radius: 25px;
  flex-shrink: 0;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: lowercase;
}

.dossier-status-tag::first-letter {
  text-transform: uppercase;
}

/* Utiliser les mêmes couleurs que les status-tag pour les cartes mobiles */
.dossier-status-tag[data-status="En analyse"] {
  background: rgba(0, 191, 255, 0.2);
  color: #0066cc;
}

.dossier-status-tag[data-status="À valider"] {
  background: rgba(255, 165, 0, 0.2);
  color: #cc6600;
}

.dossier-status-tag[data-status="En traitement"] {
  background: rgba(255, 20, 147, 0.2);
  color: #cc0066;
}

.dossier-status-tag[data-status="Envoyé"] {
  background: rgba(50, 205, 50, 0.2);
  color: #228822;
}

.dossier-status-tag[data-status="Reçu"] {
  background: rgba(0, 255, 127, 0.2);
  color: #009944;
}

.dossier-card-content {
  flex: 1;
  padding: 4px 0;
}

.dossier-card-content h4 {
  margin: 0 0 12px 0;
  color: #1a1a1a;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.3;
}

.dossier-date {
  font-size: 0.85em;
  color: #6b7280;
  background: #f8f9fa;
  padding: 4px 8px;
  border-radius: 8px;
  display: inline-block;
  font-weight: 500;
}

.dossier-card-footer {
  border-top: 2px solid #f1f3f4;
  padding-top: 16px;
  text-align: right;
  margin-top: 8px;
}

.dossier-card-footer .dossier-link {
  color: #5200FF !important;
  font-size: 0.9em !important;
  font-weight: 600 !important;
  background: transparent !important;
  border: none !important;
  padding: 8px 12px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.dossier-card-footer .dossier-link:hover {
  background: transparent !important;
  color: #5200FF !important;
  text-decoration: none !important;
  border: none !important;
}

.dossier-card-footer .dossier-link:focus {
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  color: #5200FF !important;
  box-shadow: none !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-color: transparent !important;
  outline: none !important;
  border: none !important;
}

.dossier-card-footer .dossier-link:active {
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  color: #5200FF !important;
  box-shadow: none !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-color: transparent !important;
  outline: none !important;
  border: none !important;
}

.dossier-card-footer .dossier-link:visited {
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  color: #5200FF !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
  border: none !important;
}

.dossier-card-footer .dossier-link:link {
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  color: #5200FF !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
  border: none !important;
}

/* Styles pour les cartes mobiles */
.mobile-card {
  position: relative;
  transition: all 0.2s ease;
}

.mobile-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(82, 0, 255, 0.15);
}

.dossier-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.dossier-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.mobile-delete-standalone {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
  z-index: 10;
  width: 28px;
  height: 28px;
}

.mobile-delete-standalone:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #c82333;
}

.mobile-delete {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.mobile-delete:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #c82333;
}

.dossier-card-footer {
  border-top: 1px solid #eee;
  padding-top: 12px;
  margin-top: 12px;
  text-align: right;
}

.dossier-card-footer .dossier-link {
  color: #5200FF;
  font-size: 0.9em;
  font-weight: 500;
}

/* Pagination styles */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
  padding: 20px 0;
  border-top: 1px solid #eee;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  width: 100%;
}

.pagination-info {
  color: #666;
  font-size: 0.9em;
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pagination-btn {
  background: white;
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9em;
  transition: all 0.2s ease;
  color: #555;
}

.pagination-btn:hover:not(:disabled) {
  background: #f8f9fa;
  border-color: #5200FF;
  color: #5200FF;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f8f9fa;
}

.page-numbers {
  display: flex;
  gap: 4px;
}

.page-number {background: white;
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9em;
  min-width: 40px;
  text-align: center;
  transition: all 0.2s ease;
  color: #555;
}

.page-number:hover {
  background: #f8f9fa;
  border-color: #5200FF;
  color: #5200FF;
}

.page-number.active {
  background: #5200FF;
  color: white;
  border-color: #5200FF;
}

.page-number.active:hover {
  background: #4400d6;
}

/* Toast notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 9999;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 300px;
  word-wrap: break-word;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-success {
  background: #28a745;
}

.toast-error {
  background: #dc3545;
}

.toast-info {
  background: #17a2b8;
}

.toast-warning {
  background: #ffc107;
  color: #333;
}

@media (max-width: 768px) {
  .toast {
    right: 10px;
    left: 10px;
    max-width: none;
    transform: translateY(-100px);
  }

  .toast.show {
    transform: translateY(0);
  }
}

.timeline-step.completed .step-marker {
  background: white;
  border-color: #5200FF;
}

.timeline-step.active .step-marker {
  background: #5200FF;
  border-color: #5200FF;
}

.table-container {
  max-height: calc(100vh - 280px);
  min-height: 400px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-top: 20px;
  background: white;
}

.table-container::-webkit-scrollbar {
  width: 8px;
}

.table-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 8px;
}

.table-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 8px;
}

.table-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.dossiers-table {
  position: relative;
}

.dossiers-table thead {
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dossiers-table thead th {
  background: #f8f9fa;
  border-bottom: 2px solid #e0e0e0;
  padding: 16px 12px;
  font-weight: 600;
  color: #333;
  position: relative;
}

.dossiers-table thead th::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: #e0e0e0;
}

.dossiers-table tbody tr:hover {
  background: rgba(82, 0, 255, 0.05);
}

/* Styles généraux pour la barre de recherche */
.search-bar {
  margin: 20px auto;
  text-align: center;
  width: 100%;
  display: block !important;
  visibility: visible !important;
}

.search-bar input {
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  width: 300px;
  max-width: 90%;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease;
  background: white;
  box-sizing: border-box;
}

.search-bar input:focus {
  border-color: #5200FF;
  box-shadow: 0 0 0 3px rgba(82, 0, 255, 0.1);
}

@media (max-width: 768px) {
  .ressources-filters {
    margin: 1rem 0;
    padding: 0 4px;
  }

  .filter-buttons {
    gap: 8px;
    padding: 0;
  }

  .filter-btn {
    padding: 8px 12px;
    font-size: 13px;
    margin: 0;
  }

  .search-bar {
    margin: 1.5rem 0 !important;
    padding: 0 8px !important;
    text-align: center !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .search-bar input {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 16px !important;
    font-size: 16px !important;
    border-radius: 12px !important;
    border: 2px solid #e0e0e0 !important;
    background: white !important;
    box-sizing: border-box !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .search-bar input::placeholder {
    color: #999 !important;
    opacity: 1 !important;
  }

  .ressources-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 4px;
  }

  .ressource-card {
    padding: 0.75rem;
    min-height: 100px;
  }

  .ressource-card h3 {
    font-size: 1rem;
    padding-right: 70px;
    min-height: 2.4rem;
  }

  .ressource-type {
    top: 12px;
    right: 12px;
    font-size: 0.7rem;
    padding: 4px 8px;
  }

  .ressource-link {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

.status-info-text p {
  margin: 0 0 16px 0;
  color: #666;
  line-height: 1.5;
  font-size: 0.95em;
}

.completion-header p {
  color: #666;
  font-size: 1.1em;
  margin-bottom: 24px;
}

/* Styles pour le mode complétion */
.completion-container {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin: 0 0 24px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  max-width: 100%;
}

/* Nouveaux styles pour l'interface améliorée */
.step-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #5200FF 0%, #7c3aed 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  margin: 0 auto 16px auto;
  box-shadow: 0 4px 15px rgba(82, 0, 255, 0.25);
}

.step-panel-header {
  text-align: center;
  margin-bottom: 32px;
}

.step-panel-header h3 {
  color: #1a1a1a;
  margin: 0 0 8px 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.step-panel-header p {
  color: #6b7280;
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

/* Champs obligatoires */
.required-field {
  position: relative;
}

.required-star {
  color: #e53e3e;
  font-weight: bold;
  margin-left: 4px;
}

.field-icon {
  color: #5200FF;
  margin-right: 8px;
  font-size: 14px;
  width: 16px;
  text-align: center;
}

.field-help {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 8px 12px;
  background: rgba(128, 128, 128, 0.05);
  border-radius: 6px;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}

.field-help i {
  flex-shrink: 0;
  font-size: 12px;
  color: #888;
}

/* Boutons radio améliorés */
.radio-group-enhanced {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.radio-option-enhanced {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  position: relative;
}

.radio-option-enhanced:hover {
  border-color: #5200FF;
  background: rgba(82, 0, 255, 0.02);
  transform: translateY(-1px);
}

.radio-option-enhanced input[type="radio"] {
  display: none;
}

.radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e0;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.radio-custom::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5200FF;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.3s ease;
}

.radio-option-enhanced input[type="radio"]:checked + .radio-custom {
  border-color: #5200FF;
}

.radio-option-enhanced input[type="radio"]:checked + .radio-custom::after {
  transform: translate(-50%, -50%) scale(1);
}

.radio-option-enhanced input[type="radio"]:checked ~ .radio-label {
  color: #5200FF;
  font-weight: 600;
}

.radio-label {
  flex: 1;
  font-size: 1rem;
  color: #374151;
  line-height: 1.4;
}

/* Input avec devise */
.input-with-currency {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-currency input {
  padding-right: 40px;
}

.currency-symbol {
  position: absolute;
  right: 12px;
  color: #6b7280;
  font-weight: 600;
  font-size: 1rem;
  pointer-events: none;
}

/* Sections des parties */
.party-section {
  background: white;
  border: 2px solid rgba(82, 0, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
}

/* Section litige avec fond coloré */
.litige-section {
  background: #f8f9ff;
  border: 2px solid rgba(82, 0, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.litige-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(82, 0, 255, 0.1);
}

.litige-header i {
  font-size: 24px;
  color: #5200FF;
}

.litige-header h4 {
  color: #1a1a1a;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.party-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(82, 0, 255, 0.1);
}

.party-header i {
  font-size: 24px;
  color: #5200FF;
}

.party-header h4 {
  color: #1a1a1a;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.field-description {
  background: rgba(255, 255, 255, 0.7);
  padding: 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 20px;
  font-style: italic;
  border-left: 4px solid #5200FF;
}

/* Ligne de formulaire */
.form-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
}

/* Validation visuelle */
.form-group input:valid:not(:placeholder-shown),
.form-group select:valid,
.form-group textarea:valid:not(:placeholder-shown) {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid,
.form-group textarea:invalid:not(:placeholder-shown) {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Boutons d'actions améliorés */
.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 2px solid rgba(82, 0, 255, 0.1);
  gap: 16px;
}

.step-actions .button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  min-width: 140px;
  justify-content: center;
}

.step-actions .button i {
  font-size: 14px;
}

.step-actions .button.secondary {
  background: white;
  color: #6b7280;
  border: 2px solid #e2e8f0;
}

.step-actions .button.secondary:hover {
  border-color: #5200FF;
  color: #5200FF;
  background: rgba(82, 0, 255, 0.05);
}

.step-actions .button.primary {
  background: linear-gradient(135deg, #5200FF 0%, #7c3aed 100%);
  color: white;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(82, 0, 255, 0.25);
}

.step-actions .button.primary:hover {
  background: linear-gradient(135deg, #4400d6 0%, #6d28d9 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(82, 0, 255, 0.35);
}

/* Styles épurés pour l'offre d'accompagnement */
.clean-offer-container {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

.clean-offer-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
}

.clean-offer-header {
  text-align: left;
  margin-bottom: 20px;
  border-bottom: 1px solid #f1f3f4;
  padding-bottom: 16px;
}

.clean-offer-header h4 {
  color: #1a1a1a;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.clean-offer-subtitle {
  color: #6b7280;
  font-size: 1rem;
  font-weight: 400;
  margin: 0;
  font-style: italic;
}

.clean-offer-description {
  margin: 20px 0;
  padding: 0;
}

.clean-offer-description p {
  margin: 0;
  color: #374151;
  line-height: 1.6;
  font-size: 0.95rem;
}

.clean-offer-benefits {
  margin: 20px 0;
}

.clean-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clean-benefits-list li {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.4;
}

.clean-reassurance-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 24px 0;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}

.clean-reassurance-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.clean-reassurance-item strong {
  color: #1a1a1a;
  font-size: 0.9rem;
  font-weight: 600;
}

.clean-reassurance-item span {
  color: #6b7280;
  font-size: 0.8rem;
}

.clean-payment-section {
  margin-top: 24px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #f1f3f4;
}

.stripe-payment-container {
  margin-bottom: 12px;
}

.clean-security-note {
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 400;
}

/* Responsive pour l'offre épurée */
@media (max-width: 768px) {
  .clean-offer-card {
    padding: 20px;
    margin: 16px 0;
  }

  .clean-offer-header h4 {
    font-size: 1.2rem;
  }

  .clean-offer-subtitle {
    font-size: 0.9rem;
  }

  .clean-reassurance-section {
    padding: 12px;
  }

  .clean-benefits-list li {
    font-size: 0.85rem;
  }
}

/* Responsive design for mobile */
@media (max-width: 768px) {
  .status-info-card {
    margin: 16px 0;
    padding: 16px;
  }

  .status-info-content {
    gap: 12px;
  }

  .status-info-icon {
    font-size: 20px;
  }

  .status-info-text h4 {
    font-size: 1em;
  }

  .status-info-text p {
    font-size: 0.9em;
  }
}

/* Styles pour les nouvelles offres */
.offers-grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.offer-card-new {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  padding: 24px;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.offer-card-new:hover {
  border-color: #5200FF;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(82, 0, 255, 0.15);
}

.offer-card-new.selected {
  border-color: #5200FF;
  background: linear-gradient(135deg, #fff 0%, #f8f8ff 100%);
}

.offer-badge-top {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #FF69B4;
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 105, 180, 0.3);
}

.offer-header-new {
  text-align: center;
  margin-bottom: 20px;
}

.offer-header-new h4 {
  color: #5200FF;
  font-size: 1.5em;
  font-weight: 700;
  margin: 0 0 12px 0;
  letter-spacing: 1px;
}

.offer-price-new {
  font-size: 1.1em;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
}

.offer-description-new {
  text-align: center;
  margin-bottom: 24px;
}

.offer-description-new p {
  color: #666;
  font-size: 1em;
  line-height: 1.5;
  margin: 0;
}

.offer-features-new {
  margin-bottom: 24px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding-left: 8px;
}

.feature-item:last-child {
  margin-bottom: 0;
}

.feature-item i {
  color: #5200FF;
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.feature-item span {
  color: #333;
  font-size: 0.95em;
  line-height: 1.4;
}

.offer-payment-section {
  text-align: center;
}

.offer-button-new {
  width: 100%;
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  display: inline-block;
  box-sizing: border-box;
}

.offer-button-new.primary {
  background: #5200FF;
  color: white;
}

.offer-button-new.secondary {
  background: white;
  color: #5200FF;
  border: 2px solid #5200FF;
}

.offer-button-new:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.offer-button-new.primary:hover {
  background: #4100CC;
}

.offer-button-new.secondary:hover {
  background: #5200FF;
  color: white;
}

/* Responsive pour les offres */
@media (max-width: 768px) {
  .offers-grid-two-columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .offer-card-new {
    padding: 20px;
  }

  .offer-header-new h4 {
    font-size: 1.3em;
  }

  .offer-price-new {
    font-size: 1em;
  }

  .feature-item span {
    font-size: 0.9em;
  }
}

/* Timeline horizontale moderne - Design exact comme l'image */
.timeline-modern {
  background: white;
  border-radius: 16px;
  padding: 40px 48px 80px 48px;
  margin: 32px 0;
  box-shadow: 0 2px 15px rgba(82, 0, 255, 0.05);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-track {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  position: relative;
  margin: 0;
  padding: 0;
  flex-direction: row !important;
}

/* Ligne de progression horizontale - toujours grise */
.timeline-track::before {
  content: '';
  position: absolute;
  top: 50% !important;
  left: 20px;
  right: 20px;
  height: 3px !important;
  width: auto !important;
  background: #E0E0E0 !important;
  z-index: 1;
  transform: translateY(-50%) !important;
}

.timeline-step {
  position: relative;
  z-index: 2;
  flex: 1;
  text-align: center;
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  background: white;
  padding: 0 8px;
  flex-shrink: 0;
}

.timeline-step:first-child {
  padding-left: 0;
}

.timeline-step:last-child {
  padding-right: 0;
}

.step-marker {
  width: 20px;
  height: 20px;
  background: #E0E0E0;
  border: none;
  border-radius: 50%;
  margin-bottom: 20px !important;
  margin-right: 0 !important;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

/* État actif - point violet */
.timeline-step.active .step-marker {
  background: #5200FF !important;
  border: none !important;
}

/* Étapes complétées - reste gris dans ce design */
.timeline-step.completed .step-marker {
  background: #E0E0E0 !important;
  border: none !important;
}

.step-label {
  position: absolute !important;
  width: 120px !important;
  text-align: center !important;
  top: 45px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  font-size: 14px !important;
  color: #666;
  font-weight: 700 !important;
  white-space: nowrap;
}

/* Couleur du label pour l'étape active */
.timeline-step.active .step-label {
  color: #5200FF !important;
  font-weight: 700 !important;
}

/* Les autres labels restent gris */
.timeline-step.completed .step-label {
  color: #999 !important;
  font-weight: 700 !important;
}

/* Pas de ligne de progression colorée - toujours grise */
.timeline-track[data-status]::before {
  background: #E0E0E0 !important;
}

/* Animation hover */
.timeline-step:hover .step-marker {
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(82, 0, 255, 0.1);
}

/* Responsive mobile */
@media (max-width: 768px) {
  .timeline-modern {
    padding: 20px 16px 60px 16px !important;
    margin: 16px 0;
    overflow-x: auto;
  }

  .timeline-track {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    min-width: 100% !important;
    gap: 0 !important;
  }

  .timeline-track::before {
    content: '';
    position: absolute !important;
    top: 50% !important;
    left: 8px !important;
    right: 8px !important;
    height: 2px !important;
    width: auto !important;
    background: #E0E0E0 !important;
    transform: translateY(-50%) !important;
    z-index: 1;
  }

  .timeline-step {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    justify-content: center !important;
    width: auto !important;
    padding: 0 4px !important;
    background: white !important;
    border-radius: 0 !important;
    margin: 0 !important;
    flex: 1 !important;
  }

  .step-marker {
    width: 16px !important;
    height: 16px !important;
    margin-bottom: 16px !important;
    margin-right: 0 !important;
    flex-shrink: 0 !important;
  }

  .step-label {
    position: absolute !important;
    top: 32px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    white-space: nowrap !important;
    text-align: center !important;
    width: 90px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
  }

  /* Maintenir les couleurs sur mobile */
  .timeline-track[data-status]::before {
    background: #E0E0E0 !important;
  }

  .timeline-step.active .step-marker {
    background: #5200FF !important;
  }

  .timeline-step.completed .step-marker {
    background: #E0E0E0 !important;
  }
}

.status-info-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Enlever le liseré violet pour les dossiers à compléter */
.status-info-card.completion-mode {
  border-left: none;
}

.step-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 32px;
  gap: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  background: white;
  padding: 0 8px;
  flex-shrink: 0;
}

.step-marker {
  width: 16px;
  height: 16px;
  background: white;
  border: 2px solid #E0E0E0;
  border-radius: 50%;
  margin-bottom: 24px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.step-label {
  font-size: 0.85em;
  color: #666;
  text-align: center;
  max-width: 80px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-step {
  position: relative;
  z-index: 2;
  flex: 1;
  text-align: center;
}

.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(50% + 8px);
  width: calc(100% - 16px);
  height: 2px;
  background: #E0E0E0;
  z-index: 1;
}

.timeline-step .step-marker {
  width: 16px;
  height: 16px;
  background: #E0E0E0;
  border: 2px solid #E0E0E0;
  border-radius: 50%;
  margin: 32px auto 0;
  position: relative;
  z-index: 2;
}

.timeline-step.completed .step-marker {
  background: white;
  border-color: #5200FF;
}

.timeline-step.active .step-marker {
  background: #5200FF;
  border-color: #5200FF;
}

.timeline-step .step-label {
  position: absolute;
  width: 100%;
  text-align: center;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

.timeline-step.completed .step-label,
.timeline-step.active .step-label {
  color: #5200FF;
}

/* FORCER L'AFFICHAGE HORIZONTAL SUR MOBILE - RÈGLES ULTRA SPÉCIFIQUES */
@media (max-width: 768px) {
  /* Forcer l'affichage horizontal des étapes pour les dossiers "À compléter" */
  .status-info-card.completion-mode .completion-steps .step-indicator {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 20px !important;
    padding: 10px 0 !important;
  }

  .status-info-card.completion-mode .completion-steps .step {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
  }

  .status-info-card.completion-mode .completion-steps .step-number {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #f0f0f0 !important;
    color: #666 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    font-weight: bold !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }

  .status-info-card.completion-mode .completion-steps .step.active .step-number {
    background: #5200FF !important;
    color: white !important;
  }

  /* MASQUER COMPLÈTEMENT LES LABELS SUR MOBILE */
  .status-info-card.completion-mode .completion-steps .step-label {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}